Service Name: Location Search
Service URL
https://api.nostramap.com/Service/V2/Location/Search
Description
This service allows you to search place information in Thailand, also AEC countries. You can query specified area by sending parameters, category or admin level.
Testing
We provide testing service Here
Required Parameters
Name | Type | Details |
---|---|---|
key | String | NOSTRA API Key. To get the API Key, please register your profile on the NOSTRA API Console |
keyword * | String | A term to be matched with NOSTRA place name, address, road name or etc. |
catCode * | String | NOSTRA’s POI category such as 'BANK|SHOPPING'. All category are separated using the pipe (|) character. You can get NOSTRA’s POI category, See |
localCatCode * | String | NOSTRA’s POI local category such as '22604|20218|27011'. All category are separated using the pipe (|) character. You can get NOSTRA’s POI local category, See |
houseNo * | String | House number such as '123/4'. |
telephone * | String | Telephone number such as '021234567'. |
Optional Parameters
null
Name | Type | Details |
---|---|---|
lat | Double | Latitude of point in decimal degree. |
lon | Double | Longitude of point in decimal degree. |
radius | Double | Defines the distance (in kilometer) within latitude (Lat) and longitude (Lon) parameter. Default is NULL. |
adminLevel1 | String | Refer to province name or province code. You can get Thailand province code, See |
adminLevel2 | String | Refer to district name or district code. You can get Thailand district code, See |
adminLevel3 | String | Refer to sub district name or sub district code. You can get Thailand sub district code, See |
adminLevel4 | String | Road name and SOI name. For example 'Sathon Nuea' Default is NULL. |
postcode | String | Post Code, Postal Code or Zip Code. Default is NULL. |
rowsPerPage | INT | Number of record to return. Maximum value is specified by NOSTRA. |
pageNumber | INT | Number of Page. Default is 1. |
option | String | Option codes for filtering the search result or using other search methods. Default is NULL. - perfectMatch : Only result with the completed phrases of keyword will be returned. - address : Keyword will be compared with address information only and it won't be compared with location name. Two or more option codes can be defined in a set of string seperated by vertical bar ( | ). For example: perfectMatch|address |
country | String | Country code. TH=Thailand | SG=Singapore | MY=Malaysia | BN=Brunei | VN=Vietnam | PH=Philippines |ID=Indonesia | MM=Myanmar | LA=Laos | KH=Cambodia. Default value is 'TH' |
Response
A JSON response contains two root elements below
Name | Summary |
---|---|
errorMessage | An error message displayed when an unexpected condition occurs, null if not. |
results | This root contains array of place. |
Response Details
results
Name | Details |
---|---|
AdminLevel1_E | Province name in English. |
AdminLevel1_L | Province name in Local language. |
AdminLevel2_E | District name in English. |
AdminLevel2_L | District name in Local language. |
AdminLevel3_E | Sub district name in English. |
AdminLevel3_L | Sub district name in Local language. |
AdminLevel4_E | Road and SOI name in English. |
AdminLevel4_L | Road and SOI name in Local language. |
AdminLevel1Code | Province code. |
AdminLevel2Code | District code. |
AdminLevel3Code | Sub district code. |
Branch_E | Branch in English. |
Branch_L | Branch in Local language. |
CatCode | Category’s name of POI. |
LocalCatCode | Local category's name of POI. |
HouseNo | House number. |
LatLon | Point of interest’s Latitude and Longitude. |
LatLon_Route1 | Point of interest’s Latitude and Longitude entrance 1. |
LatLon_Route2 | Point of interest’s Latitude and Longitude entrance 2. |
LatLon_Route3 | Point of interest’s Latitude and Longitude entrance 3. |
LatLon_Route4 | Point of interest’s Latitude and Longitude entrance 4. |
Name_E | Location name in English. |
Name_L | Location name in Local language. |
No | Result’s order. |
NostraId | ID of data. |
PostCode | Postcode. |
Telephone | Telephone number. |
dist | Distance from input location in km. |
https://api.nostramap.com/Service/V2/Location/Search
***Please enter your Nostra Key.