# Maps API

**Maps API Documentation**

A Maps API gives you access to real-world location data, like maps, addresses, directions, and traffic information. It lets you customize maps and build location-based features for apps and websites, making your projects more interactive and informative.

\
**Base URL**

```
https://santechapi.vercel.app
```

### Authentication

```
headers : {
"token" : {YOUR API KEY}
}
```

**Endpoint:** `maps/city/:q`

*HTTP Method: Get*

**Example request**

```
Get maps/city/chennai
```

Example Response

```
{
	"count": 185923,
	"name": "Ajay",
	"gender": "male",
	"probability": 0.99
}
```

### Error Handling

In case of an error, the API will respond with an appropriate HTTP status code and an error message in the response body.

<pre><code> {
<strong>message: "param required for keyword based Location fetch"
</strong>}
</code></pre>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://santech.gitbook.io/docs/maps-api.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
