This operation was normalized from a MapmyIndia-generation specification. Validate its current Mappls host, path, package entitlement, authentication generation, and commercial availability before production use.
Call the operation
https://atlas.mapmyindia.com/api/places/search/json?query=mapmyindiahttps://atlas.mapmyindia.comParameters
queryrequiredEnter the query on which the search has to be done.
mapmyindialocationLocation is required to get location biased autosuggest results.
28.612964,77.229463regionIt takes in the country code. Possible values are listed in a table here. Default is India (IND).
INDtokenizeAddressIt is the valueless parameter provides the different address attributes in a structured object.
YOUR_ACCESS_TOKENpodIt takes in the place type code which helps in restricting the results to certain chosen type. This optional parameter & its related effect on response is not applicable for regions apart from India (IND). Below mentioned are the codes for the pod: SLC: Sublocality LC: Locality CITY: City VLG: Village SDIST: Subdistrict DIST: District STATE: State SSLC: Subsublocality
CITYfilterThis parameter helps you restrict the result either by mentioning a bounded area or to certain eloc (6 digit code to any poi, locality, city, etc.). This optional parameter & its related effect on response is not applicable for regions apart from India (IND). Below mentioned are the available types: filter = pin:It takes pincode/postal code of an area{e.g. filter=pin:110055} filter = bounds lat1,lng1;lat2,lng2(latitude,longitude){e.g. filter=bounds 28.598882, 77.212407; 28.467375, 77.353513} filter = cop {eloc} (string) {e.g. filter=cop:YMCZ0J}
pin:110001bridge(Valueless)It initiates a bridge to be created to provide applicable nearby API searches in the suggestedSearches response object. This optional parameter & its related effect on response is not applicable for regions apart from India (IND).
truehyperLocal(valueless): This parameter lets the search give results that are hyper-localized to the reference location passed in the location parameter. This means that nearby results are given higher ranking than results far from the reference location. Highly prominent results will still appear in the search results, however they will be lower in the list of results. This parameter will work ONLY in conjunction with the location parameter. This optional parameter & its related effect on response is not applicable for regions apart from India (IND).
trueBuild your request in eight languages
Change source-backed examples once, validate required inputs, and copy the synchronized cURL, JavaScript, Python, Java, C#, Go, PHP, or Ruby request. Credentials remain environment references, and this page never sends a provider request.
https://atlas.mapmyindia.com/api/places/search/json?query=mapmyindia&location=28.612964%2C77.229463®ion=IND&pod=CITY&filter=pin%3A110001&bridge=true&hyperLocal=truecurl --request GET \
--url 'https://atlas.mapmyindia.com/api/places/search/json?query=mapmyindia&location=28.612964%2C77.229463®ion=IND&pod=CITY&filter=pin%3A110001&bridge=true&hyperLocal=true' \
--header "Accept: application/json" \
--header "Authorization: Bearer ${MAPPLS_ACCESS_TOKEN}"Credential-safe by constructionSet MAPPLS_ACCESS_TOKEN only in your trusted runtime. Code generation stays local. Sandbox execution sends only bounded fixture inputs to this developer platform and never reads a credential or calls Mappls.
Send a production-shaped request
Examples use environment-backed access tokens, explicit timeouts where supported, status checks, and JSON bodies derived from the source schema. Replace sample identifiers and coordinates with values from your application.
curl --request GET \
--url 'https://atlas.mapmyindia.com/api/places/search/json?query=mapmyindia' \
--header 'Authorization: Bearer YOUR_ACCESS_TOKEN'Responses
OK
Not found
Bad request
API access denied
Forbidden
Something went wrong
Internal server error
200 response fields
suggestedLocationsrequiredNo field description in the source contract.
28.612964,77.229463suggestedLocations[].typerequiredThis is the type whether the results is POI or any building point.
POIsuggestedLocations[].typeXrequiredType attribute for internal use only for MapmyIndia.
7suggestedLocations[].placeAddressrequiredAddress of the location.
Yippee Rooms, Sector 56, Gurugram, Haryana, 122011suggestedLocations[].latituderequiredIt shows us the latitude of the location searched. Geometry information is NOT available in most use-case driven response; and is RESTRICTED.
28.612964suggestedLocations[].longituderequiredIt shows us the longitude of the location searched. Geometry information is NOT available in most use-case driven response; and is RESTRICTED.
77.229463suggestedLocations[].eLocrequiredIt is the Six or eight digit unique code offered only by mapmyindia to search for any address through this eLoc.
MMI000suggestedLocations[].entryLatituderequiredIt shows us the entry latitude of the location searched. Geometry information is NOT available in most use-case driven response; and is RESTRICTED.
28.612964suggestedLocations[].entryLongituderequiredIt shows us the entry longitude of the location searched. Geometry information is NOT available in most use-case driven response; and is RESTRICTED.
77.229463suggestedLocations[].placeNamerequiredThis shows the name of the POI
OYO HotelsuggestedLocations[].alternateNamerequiredThis shows the alternate name of the POI
OyoRooms,OYO 40400 Yippe Rooms,OYO Rooms HotelsuggestedLocations[].keywordsrequiredThe keywords/category codes associated with the given result.
examplesuggestedLocations[].addressTokensrequiredNo field description in the source contract.
YOUR_ACCESS_TOKENsuggestedLocations[].addressTokens.houseNumberHouse Number of the POI.
237suggestedLocations[].addressTokens.houseNameHouse Name of the POI.
MMI BuildingsuggestedLocations[].addressTokens.poiName of the POI.
MapmyIndia Head OfficesuggestedLocations[].addressTokens.streetName of the street.
—suggestedLocations[].addressTokens.subSubLocalityName of the subsublocality.
—suggestedLocations[].addressTokens.subLocalityName of the sublocality.
—suggestedLocations[].addressTokens.localityName of the locality.
Okhla industrial phase 3suggestedLocations[].addressTokens.villageName of the village.
Okhla VilagesuggestedLocations[].addressTokens.subDistrictName of the subDistrict.
—suggestedLocations[].addressTokens.districtrequiredName of the District.
South DelhisuggestedLocations[].addressTokens.cityrequiredName of the city.
New DelhisuggestedLocations[].addressTokens.staterequiredName of the STATE.
1700000000000suggestedLocations[].addressTokens.pincodePINcode of the location.
110010suggestedLocations[].prequiredThis shows the priority of the POI
11663suggestedLocations[].orderIndexrequiredThis shows the order of the search results priority wise.
1suggestedLocations[].scorerequiredThis shows the score of the POI.
1.5075794782130676suggestedLocations[].suggesterrequiredThis shows on which basis the search results has been found.
alternateNamesuggestedLocations[].richInforequiredThis shows the rich info associated with the given result.
—userAddedLocationrequiredNo field description in the source contract.
28.612964,77.229463userAddedLocation[].eLocrequiredIt is the Six or eight digit unique code offered only by mapmyindia to search for any address through this eLoc.
MMI000userAddedLocation[].entryLatituderequiredlatitude of the entrance of the location. Geometry information is NOT available in most use-case driven response; and is RESTRICTED.
28.612964userAddedLocation[].entryLongituderequiredlongitude of the entrance of the location. Geometry information is NOT available in most use-case driven response; and is RESTRICTED.
77.229463userAddedLocation[].latituderequiredIt shows us the latitude of the location searched. Geometry information is NOT available in most use-case driven response; and is RESTRICTED.
28.612964userAddedLocation[].longituderequiredIt shows us the longitude of the location searched. Geometry information is NOT available in most use-case driven response; and is RESTRICTED.
77.229463userAddedLocation[].orderIndexrequiredThis shows the order of the search results priority wise.
1userAddedLocation[].placeAddressrequiredThis is the address of the text searched by you.
Yippee Rooms, Sector 56, Gurugram, Haryana, 122011userAddedLocation[].placeNamerequiredThis shows the name of the POI.
OYO HoteluserAddedLocation[].resultTyperequiredIt Shows the the category of result falling into. For eg. UAP
UAPuserAddedLocation[].typerequiredNo field description in the source contract.
—userAddedLocation[].userNamerequiredIt shows the UserID of the person who added the location.
usr1577100139i799918080suggestedSearchesrequiredNo field description in the source contract.
examplesuggestedSearches[].keywordrequiredIt shows the result keyword
corona testing labsuggestedSearches[].identifierrequiredon what basis the results shown
nearsuggestedSearches[].locationrequiredlocation near the results are shown
28.612964,77.229463suggestedSearches[].hyperlinkrequireddirect link of the poi.
https://atlas.mapmyindia.com/api/places/nearby/json?explain&richData&username=atlasuser&refLocation=28.550592,77.26877&keywords=hsptstsuggestedSearches[].orderIndexrequiredThis shows the order of the search results priority wise.
0suggestedSearches[].eLocrequiredIt is the Six or eight digit unique code offered only by mapmyindia to search for any address through this eLoc.
MMI000langrequiredUsed to indicate if the response is in some language other than the default(which is en). Valid values are hi, which indicates Hindi response.
hi{
"suggestedLocations": [
{
"type": "POI",
"typeX": 7,
"placeAddress": "Yippee Rooms, Sector 56, Gurugram, Haryana, 122011",
"latitude": "RESTRICTED",
"longitude": "RESTRICTED",
"eLoc": "2LH9OC",
"entryLatitude": "RESTRICTED",
"entryLongitude": "RESTRICTED",
"placeName": "OYO Hotel",
"alternateName": "OyoRooms,OYO 40400 Yippe Rooms,OYO Rooms Hotel",
"keywords": [
"FINATM"
],
"addressTokens": {
"district": "South Delhi",
"city": "New Delhi",
"state": "Delhi"
},
"p": 11663,
"orderIndex": 1,
"score": 1.5075794782130676,
"suggester": "alternateName",
"richInfo": ""
}
],
"userAddedLocation": [
{
"eLoc": "2LH9OC",
"entryLatitude": "RESTRICTED",
"entryLongitude": "RESTRICTED",
"latitude": "RESTRICTED",
"longitude": "RESTRICTED",
"orderIndex": 1,
"placeAddress": "Yippee Rooms, Sector 56, Gurugram, Haryana, 122011",
"placeName": "OYO Hotel",
"resultType": "UAP",
"type": "",
"userName": "usr1577100139i799918080"
}
],
"suggestedSearches": [
{
"keyword": "corona testing lab",
"identifier": "near",
"location": "me",
"hyperlink": "https://atlas.mapmyindia.com/api/places/nearby/json?explain&richData&username=atlasuser&refLocation=28.550592,77.26877&keywords=hsptst",
"orderIndex": 0,
"eLoc": "null"
}
],
"lang": "hi"
}Operate it safely
This operation is evaluated independently from the request. Cache and retry according to its documented semantics.
Contract provenance
- Source file
contenthub/dochub/mapmyindia-rest-api/docs/custom/autosuggest.yml- SHA-256
853e2a51f94cc6cc10291bdfdfbd49d57c6cbe56b91a8ab7893a66639a595cf4- Normalization
- Fields are parsed from OpenAPI. Operational guidance and language samples are generated and labeled separately.
- Source record
- Open repository audit