Skip to content

Geocoding API

Easy To Integrate Maps & Location APIs & SDKs For Web & Mobile Applications

Powered with India's most comprehensive and robust mapping functionalities.

Global Coverage Now Available !

Geocoding API is Now Available for 238 countries across the world.

You can get your api key to be used in this document here: https://about.mappls.com/api/

Note

  1. The response listed in the below documentation is ONLY indicative of the overall capabilities of Mappls's Search APIs.
  2. Not all response parameters mentioned in the below documentation is assured to be present in all the use-cases. The response of any of the below search API is thus, dependent on the use-case agreed upon between Mappls & it's API consumer.
  3. For any further clarifications on what all of the response structure is available for your use case, please contact your business relationship manager or contact Mappls API support.
  4. PREMIUM APIs/Parameters are not available for evalulation on signup. To get access, please contact API Support.

Introduction

All mapping APIs that are used in mobile or web apps need some geo-position coordinates to refer to any given point on the map. Our Geocoding API converts real addresses into these geographic positional information(eLoc) to be placed on a map, be it for any street, area, postal code, POI or a house number etc.

Live Demo

Click here to visit live demonstration page

Input URL

https://search.mappls.com/search/address/geocode?

Input Method

GET

Getting Access

Before using the API in the your solution, please ensure that the related access is enabled in the Mappls Console, within your app - be it for Mobile OR Web or Cloud integration.

  1. Copy and paste the key from your credentials section from your API keys into the access_token query parameter.
    • Your static key can be secured by whitelisting its usage for particular IPs (in case of cloud app usage) OR a set of domains (in case of a web app)
    • Your static key obtained from your Console is to be passed as a query parameter: access_token.

Authentication Object - access_token mandatory query parameter.

  • access_token: "hklmgbwzrxncdyavtsuojqpiefrbhqplnm".

Request Parameters

Mandatory Parameters

  1. address: (string) address to be geocoded e.g. 237 Okhla industrial estate phase 3 new delhi, delhi 110020.

Optional Parameter

  1. itemCount (integer): parameter can be set to get maximum number of result items from the API (default: 1).
  2. bias (integer): This parameter can be used to set Urban or Rural bias. A positive value sets the Urban bias and a negative value sets Rural bias. Allowed values are:
    • 0 : Default: (No bias)
    • -1 : Rural
    • 1 : Urban
  3. podFilter (string): This parameter can be used to set admin level restriction. The result will be either the given admin level or equivalent admin or higher in the hierarchy. No lower admin will be considered for geocoding. Allowed values are:
    • hno : house number
    • hna : house name
    • poi : point of interest
    • street : street
    • sslc : sub sub locality
    • village : village
    • slc : sub locality
    • sdist : sub district
    • loc : locality
    • city : city
    • dist : district
    • pincode :pincode
    • state : state
  4. bound (string): This parameter can be used to set admin boundary, which means geocoding will be done within the given admin. The allowed admin bounds are Sub-District, District, City, State and Pincode. The parameter accepts the admin eLoc as value.
  5. region(string): This parameter is optional for India; for other countries (such as Sri Lanka, Nepal, Bangladesh, Bhutan + many more) this parameter is mandatory. Possible values are listed in a table here.
  6. actualGeoLevel (valueless): returns the actual geocoding level which indicates the best possible match till which the API is able to extrapolate to.

Note: Please note that podFilter & bound parameters are mutually exclusive. They cannot be used together in an API call.

Response Type

JSON

Response Codes

Note: as HTTP response code

Success

  1. 200: To denote a successful API call.
  2. 204: To denote the API was a success but no results were found.

Client-Side Issues

  1. 400: Bad Request, User made an error while creating a valid request.
  2. 401: Unauthorized, Developer’s key is not allowed to send a request with restricted parameters.
  3. 403: Forbidden, Developer’s key has hit its daily/hourly limit. Server-Side Issues:
  4. 500: Internal Server Error, the request caused an error in our systems.
  5. 503: Service Unavailable, during our maintenance break or server down-times.

Response Messages

Note: as HTTP response message

  1. 200: Success.
  2. 204: No matches we’re found for the provided query.
  3. 400: Something’s just not right with the request.
  4. 401: Access Denied.
  5. 403: Services for this key has been suspended due to daily/hourly transactions limit.
  6. 500: Something went wrong.
  7. 503: Maintenance Break.

Response Parameters

  1. houseNumber(string): the houseNumber of the address/location.
  2. houseName(string): houseName of the address/location.
  3. poi(string): the point of interest or famous landmark nearby the location.
  4. street(string): the street or road of the location.
  5. subsubLocality(string): the subSubLocality of the location.
  6. subLocality(string): the subLocality of the location.
  7. locality(string): the locality of the location.
  8. village(string): the village of the location.
  9. subDistrict(string): the subDistrict of the location.
  10. district(string): the district of the location.
  11. city(string): the city of the location.
  12. state(string): the state of the location.
  13. pincode(string): the pincode of the location.
  14. formattedAddress(string): the general protocol following address.
  15. eloc(string): eloc of the particular location.
  16. geocodeLevel(string): the exact matched address component.
  17. confidenceScore(float): the confidence for current of geocodelevel.
  18. elocAdminType (string): the best matched (including extrapolations) address component.

Premium Response Parameters (only for India region)

  1. Census Information: (as per last census)
    • sttCenCd (string): State's census code.
    • dstCenCd (string): District's census code.
    • sdbCenCd (string): Subdistrict's census code.
    • vlgCenCd (string): Village's census code, if address is rural.
    • twnCenCd (string): Town's census code, if address is within any census town. Note: Here town means a census town - an urban agglomeration defined by GoI during census; which is different from a city.
    • twnName (string): Town's name as per last census.
  2. Local Government Directory (LGD Information)
    • sttLgdCd (string): State's LGD code.
    • dstLgdCd (string): District's LGD code.
    • sdbLgdCd (string): Subdistrict's LGD code.
    • vlgLgdCd (string): Village's LGD code, if address is rural.
    • twnLgdCd (string): Town's LGD code, if address is within any census town.

Sample Input

https://search.mappls.com/search/address/geocode?address=mapmyindia 237 okhla phase 3

Sample Output

Single item response

{
    "copResults": {
        "houseNumber": "237",
        "houseName": "",
        "poi": "",
        "street": "",
        "subSubLocality": "",
        "subLocality": "",
        "locality": "Okhla Industrial Estate Phase 3",
        "village": "",
        "subDistrict": "Kalkaji",
        "district": "South East Delhi District",
        "city": "New Delhi",
        "state": "Delhi",
        "pincode": "110020",
        "formattedAddress": "237, Okhla Industrial Estate Phase 3, Kalkaji, South East Delhi District, New Delhi, Delhi, 110020",
        "eLoc": "TIYF9Q",
        "geocodeLevel": "houseNumber",
        "confidenceScore": 0.4
    }
}

Multiple item response

{
    "copResults": [
        {
            "houseNumber": "",
            "houseName": "",
            "poi": "",
            "street": "",
            "subSubLocality": "",
            "subLocality": "",
            "locality": "Lady Irwin College Campus",
            "village": "",
            "subDistrict": "Connaught Place",
            "district": "New Delhi District",
            "city": "New Delhi",
            "state": "Delhi",
            "pincode": "110001",
            "formattedAddress": "Lady Irwin College Campus, Connaught Place, New Delhi District, New Delhi, Delhi, 110001",
            "eLoc": "BGKAFR",
            "geocodeLevel": "locality",
            "confidenceScore": 1
        },
        {
            "houseNumber": "",
            "houseName": "",
            "poi": "Lady Irwin College",
            "street": "Sikandra Road",
            "subSubLocality": "",
            "subLocality": "",
            "locality": "Lady Irwin College Campus",
            "village": "",
            "subDistrict": "Connaught Place",
            "district": "New Delhi District",
            "city": "New Delhi",
            "state": "Delhi",
            "pincode": "110001",
            "formattedAddress": "Lady Irwin College, Sikandra Road, Lady Irwin College Campus, Connaught Place, New Delhi District, New Delhi, Delhi, 110001",
            "eLoc": "38FD1E",
            "geocodeLevel": "street",
            "confidenceScore": 0.8
        },
        {
            "houseNumber": "",
            "houseName": "",
            "poi": "Mandi House Metro Station",
            "street": "Sikandra Road",
            "subSubLocality": "",
            "subLocality": "",
            "locality": "Connaught Place",
            "village": "",
            "subDistrict": "Connaught Place",
            "district": "New Delhi District",
            "city": "New Delhi",
            "state": "Delhi",
            "pincode": "110001",
            "formattedAddress": "Mandi House Metro Station, Sikandra Road, Connaught Place, Connaught Place, New Delhi District, New Delhi, Delhi, 110001",
            "eLoc": "DF2F4C",
            "geocodeLevel": "street",
            "confidenceScore": 0.4
        }
    ]
}

For any queries and support, please contact:

Email us at apisupport@mappls.com

Support Need support? contact us!



@ Copyright 2025 CE Info Systems Ltd. All Rights Reserved.