Use Thecha Maps in your project
Search places in India and Nepal, choose map pins and retrieve timezones. Names use available OpenStreetMap labels and explicit language fallbacks. Documentation is public; searches, place details, reverse lookups and map data require access.
Request access
Start in the Thecha Maps dashboard. Verify your email, sign in and submit an application request with its purpose, website origins and expected usage. Read decisions and answer questions in the dashboard. After approval, create separate development and production API keys and invite your team.
Account verification lets you track requests; map access requires application approval. Contribution and geographic review are separate permissions. For help, contact support-map@thecha.in.
Backend API key
Keep the key in your backend's secret manager. Send it in the Authorization header over HTTPS. Never put a server key in frontend code, a URL, or a mobile app bundle.
GET https://maps.aanvay.in/v1/search?q=Pune&language=mr
Authorization: Bearer YOUR_SERVER_API_KEY
The API reference lists search, reverse, nearby, viewport, place details, timezone, sessions and contribution routes. A key is scoped to its project. Status 401 means missing, expired or revoked access; 403 means insufficient permission or an unregistered browser origin; 429 means the limit was reached (see Retry-After).
Browser and location selector
Your backend checks its own user's access, calls the session endpoint using its server key, and returns the short-lived token. Protect and rate-limit that backend route; do not make it an unrestricted public token dispenser. No separate map-service login is needed for your application's users.
POST https://maps.aanvay.in/v1/sessions
Authorization: Bearer YOUR_SERVER_API_KEY
Content-Type: application/json
{"subject":"your-user-or-controlled-guest-id","role":"reader"}
Tokens last at most 15 minutes and cannot outlive the parent credential. The default role is reader. Supply the token as a JavaScript property before attaching the component:
import 'https://maps.aanvay.in/location-selector.js';
const session = await fetch('/your-backend/map-session', {method:'POST'}).then(r => r.json());
const picker = document.createElement('common-location-selector');
picker.setAttribute('endpoint', 'https://maps.aanvay.in');
picker.setAttribute('language', 'mr');
picker.accessToken = session.access_token; // memory only
picker.addEventListener('location-selected', e => saveLocation(e.detail));
container.append(picker);
Include maplibre-gl.css from this service. The selector automatically loads its own location-selector.css beside the component module, including its local language fonts. Obtain a fresh token from your backend before expiry and update picker.accessToken. Handle maps-auth-required to stop the picker and renew access when appropriate. Remove the component on logout. Register your website origin with the administrator. View the integration example.
Map data and limits
The authenticated /v1/config returns the map style URL. Style, fonts, sprites and PMTiles are served through /assets/ with the same credentials. PMTiles requests must use a single bounded HTTP Range, at most 4 MiB. Anonymous Blob downloads are disabled.
Each credential has a configurable API limit and a separate map-asset limit per minute, shared by its sessions. Defaults: 120 API requests and 1,200 asset requests per minute. Revocation and rotation apply to the next request, including active sessions and map downloads. Already downloaded data cannot be recalled.
Website accounts and administration
Sign in through the Thecha Maps dashboard using the methods shown on the sign-in page. Human sign-in and application API keys are separate. The dashboard session lasts up to one hour; selecting an application environment opens the protected explorer for up to 15 minutes.
Maps administrators review access requests and set the approved permissions and usage ceilings. Application owners and managers maintain their team, origins and environments; permitted developers manage keys. Keys are shown only when created or rotated. Save them in the consuming application's backend secret manager; rotate a lost key. Use account recovery for your password, and another administrator or the infrastructure operator for administrator-access recovery.
Data sources and licences · © OpenStreetMap contributors · Map design by Protomaps