Skip to content

Commit

Permalink
added census and lgd information for geocode
Browse files Browse the repository at this point in the history
and reverse geocode APIs
  • Loading branch information
kunalbharti committed Apr 11, 2024
1 parent 4725e89 commit 5228a0c
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
22 changes: 21 additions & 1 deletion mappls-maps-geocoding-rest-api-example/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ Allowed values are:
- `state` : state
5. *`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.
6. *`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](https://github.com/Mappls-api/mapmyindia-rest-api/blob/master/docs/countryISO.md).
7. *`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.

Expand Down Expand Up @@ -118,8 +119,27 @@ Server-Side Issues:
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 best matched address component.
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. <br>
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

Expand Down
15 changes: 15 additions & 0 deletions mappls-maps-reverse-geocoding-rest-api-example/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,21 @@ The “**bold**” one’s are mandatory, and the “*italic*” one’s are opt
- **`area`**: The country name of the given location.
- **`formatted_address`**: The compelete formatted address for the passed location in the request.

## 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. <br>
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

Expand Down

0 comments on commit 5228a0c

Please sign in to comment.