Longdo Map REST API
Suggest
https://search.longdo.com/mapsearch/json/suggest
Request Method: GET/POST
stringkeyword: Search keyword
CSVarea: Geocode of search area (Default: Any area)
Numberoffset: Offset of the first result returned (Default: 0)
Numberlimit: Number of results returned (Default: 10)
CSVdataset: Search dataset (Default: Default data)
stringkey: Longdo Map API Key
stringcallback: JSONP Callback function (Default: Response in JSON)

Response Format: JSON
Objectmeta: Metadata Arraydata: List of results Example
https://search.longdo.com/mapsearch/json/search
Request Method: GET/POST
stringkeyword: Search keyword
CSVarea: Geocode of search area (Default: Any area)
Numberlon: Lontitude of the center of result (Default: Silom)
Numberlat: Latitude of the center of result (Default: Silom)
stringspan: Span with unit in deg, m or km (Default: Anywhere)
CSVtag: Tag (Default: Any tag)
Numberoffset: Offset of the first result returned (Default: 0)
Numberlimit: Number of results returned (Default: 20)
CSVdataset: Search dataset (Default: Default data)
LocaleCodelocale: Language in ISO 639-1 format (Default: th)
stringkey: Longdo Map API Key
stringcallback: JSONP Callback function (Default: Response in JSON)

Response Format: JSON
Objectmeta: Metadata Arraydata: List of results Example
Reverse geocoding
https://api.longdo.com/map/services/address
Request Method: GET/POST
stringid: Search with Longdo Map ID (Optional)
Numberlon: Search with lontitude if id isn't provide (Optional)
Numberlat: Search with latitude if id isn't provide (Optional)
LocaleCodelocale: Language in ISO 639-1 format (Default: th)
anynoadmin: Don't include geocode/province/district/subdistrict in the response
anynopostcode: Don't include postcode in the response
anynoelevation: Don't include elevation in the response
anynoroad: Don't include road in the response
anynoaoi: Don't include area of internest in the response
anynowater: Don't include water body in the response
stringkey: Longdo Map API Key
stringcallback: JSONP Callback function (Default: Response in JSON)

Response Format: JSON
stringgeocode: Geocode (thailand)
stringcountry: Country
stringprovince: Province or equivalent
stringdistrict: District or equivalent
stringsubdistrict: Subdistrict or equivalent
stringmoo: Village number if exist
stringmoo_name: Village name if exist
stringhouse_num: House number if exist
stringpostcode: Postcode (thailand)
stringaoi: Area of internest if exist
stringwater: Water body if exist
Numberelevation: Elevation in metre if exist
stringroad: Road name if exist
stringexpress: Express way name if exist
Example
Batch reverse geocoding
https://api.longdo.com/map/services/addresses
Request Method: GET/POST
[Number]lon: Search with lontitude, up to 100 coordinates (Optional)
[Number]lat: Search with latitude, up to 100 coordinates (Optional)
stringwkt: Search with well-known text if lon/lat isn't provide, show only admin in response (Optional)
LocaleCodelocale: Language in ISO 639-1 format (Default: th)
anynoadmin: Don't include geocode/province/district/subdistrict in the response
anynopostcode: Don't include postcode in the response
anynoelevation: Don't include elevation in the response
anynoroad: Don't include road in the response
anynoaoi: Don't include area of internest in the response
anynowater: Don't include water body in the response
stringkey: Longdo Map API Key
stringcallback: JSONP Callback function (Default: Response in JSON)

Response Format: JSON
Arraydata: List of results in Reverse geocoding format Example
Geocode / Postcode
https://api.longdo.com/POIService/json/address
Request Method: GET/POST
stringgeocode: Search with geocode (Optional)
stringpostcode: Search with postcode if geocode isn't provide (Optional)
LocaleCodelocale: Language in ISO 639-1 format (Default: th)
stringkey: Longdo Map API Key
stringcallback: JSONP Callback function (Default: Response in JSON)

Response Format: JSON
With geocode
stringgeocode: Geocode
stringprovince: Province
stringdistrict: District
stringsubdistrict: Subdistrict
Numberlat: Latitude
Numberlon: Lontitude

With postcode
Arrayarea: List of areas in this postcode Example
Nearby POI
https://api.longdo.com/POIService/json/search
Request Method: GET/POST
CSVarea: Geocode of search area (Default: Any area)
Numberlon: Lontitude of the center of result (Default: Silom)
Numberlat: Latitude of the center of result (Default: Silom)
stringspan: Span with unit in deg, m or km (Default: Anywhere)
CSVtag: Tag (Default: Any tag)
Numberzoom: Importantness level of POI
Numberoffset: Offset of the first result returned (Default: 0)
Numberlimit: Number of results returned (Default: 20)
CSVdataset: Search dataset (Default: Default data)
LocaleCodelocale: Language in ISO 639-1 format (Default: th)
stringkey: Longdo Map API Key
stringcallback: JSONP Callback function (Default: Response in JSON)

Response Format: JSON
Objectmeta: Metadata Arraydata: List of results Example
Calculate route
https://mmmap15.longdo.com/mmroute/json/route/guide
Request Method: GET/POST
Numberflon: Lontitude of the starting point
Numberflat: Latitude of the starting point
Numbertlon: Lontitude of the destination
Numbertlat: Latitude of the destination
RouteModemode: Search mode (Default: Avoid traffic)
RouteTypetype: Allow travel method, can combine (Default: All type)
LocaleCodelocale: Language in ISO 639-1 format (Default: th)
RouteRestrictrestrict: Vehicle restriction (Default: none)
Unix timetime: Departure time, use with avoid traffic mode (Default: now, Past time is invalid)
intmaxresult: Number of results (Default: 1, Max: 8)
stringkey: Longdo Map API Key
stringcallback: JSONP Callback function (Default: Response in JSON)

Response Format: JSON
Objectmeta: Metadata Arraydata: List of results Example
Get route path
https://mmmap15.longdo.com/mmroute/json/route/path
Request Method: GET/POST
intid: Path ID from Calculate route service

Response Format: JSON
Objectmeta: Metadata Arraydata: List of results, same index as Calculate route service Example
Calculate route in GeoJSON
https://mmmap15.longdo.com/mmroute/geojson/route
Request Method: GET/POST
Numberflon: Lontitude of each starting points
Numberflat: Latitude of each starting points
Numbertlon: lontitude of each destinations
Numbertlat: Latitude of each destinations
RouteModemode: Search mode (Default: Avoid traffic)
RouteTypetype: Allow travel method, can combine (Default: All type)
LocaleCodelocale: Language in ISO 639-1 format (Default: th)
RouteRestrictrestrict: Vehicle restriction (Default: none)
Unix timetime: Departure time, use with avoid traffic mode (Default: now, Past time is invalid)
stringkey: Longdo Map API Key
stringcallback: JSONP Callback function (Default: Response in JSON)

Response Format: GeoJson
FeatureCollectionFeatureCollection: List of roads FeatureFeature: A road Example
Calculate route matrix
https://mmmap15.longdo.com/mmroute/json/route/matrix
Request Method: GET/POST
[Number]flon: Lontitude of the starting point, up to 25 coordinates
[Number]flat: Latitude of the starting point, up to 25 coordinates
[Number]tlon: Lontitude of the destination, up to 25 coordinates
[Number]tlat: Latitude of the destination, up to 25 coordinates
RouteModemode: Search mode (Default: Avoid traffic)
RouteTypetype: Allow travel method, can combine (Default: All type)
LocaleCodelocale: Language in ISO 639-1 format (Default: th)
RouteRestrictrestrict: Vehicle restriction (Default: none)
Unix timetime: Departure time, use with avoid traffic mode (Default: now, Past time is invalid)
stringkey: Longdo Map API Key
stringcallback: JSONP Callback function (Default: Response in JSON)

Response Format: JSON
Objectmeta: Metadata Arraydata: List of results for each starting points Example
Get close road
https://mmmap15.longdo.com/mmroute/json/close/get
Request Method: GET
Response Format: JSON
ArrayList of results
Set close road
https://mmmap15.longdo.com/mmroute/json/close/set
Authentication required
Request Method: GET/POST
[string]polygon: Well-known text of close area
[string]time: CSV of alternating value between first and last hour of week of each closing period (Default: Always close)

Response Format: JSON
boolresult: Result

Example
RouteMode
RouteType
LocaleCode
RouteRestrict
TurnCode