Longdo Map REST API
Suggest
https://search.longdo.com/mapsearch/json/suggest
Request Method: GET
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
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
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
stringkey: Longdo Map API Key
stringcallback: JSONP Callback function (Default: Response in JSON)

Response Format: JSON
stringgeocode: Geocode
stringprovince: Province
stringdistrict: District
stringsubdistrict: Subdistrict
stringpostcode: Postcode
Numberelevation: Elevation in metre if exist
stringroad: Road name if exist
Example
Batch reverse geocoding
https://api.longdo.com/map/services/addresses
Request Method: GET
[Number]lon: Search with lontitude, up to 100 value (Optional)
[Number]lat: Search with latitude, up to 100 value (Optional)
stringwkt: Search with well-known text if lon/lat isn't provide, ignore all no* options (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
stringkey: Longdo Map API Key
stringcallback: JSONP Callback function (Default: Response in JSON)

Response Format: JSON
Arraydata: List of results Example
Geocode / Postcode
https://mmmap15.longdo.com/POIService/json/address
Request Method: GET
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
Calculate route
https://mmmap15.longdo.com/mmroute/json/route/guide
Request Method: GET
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)
intmaxresult: Number of results (Default: 1, Max: 8)
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
Get route path
https://mmmap15.longdo.com/mmroute/json/route/path
Request Method: GET
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
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)
stringkey: Longdo Map API Key
stringcallback: JSONP Callback function (Default: Response in JSON)

Response Format: GeoJson
FeatureCollectionFeatureCollection: List of roads FeatureFeature: A road Example
RouteMode
RouteType
LocaleCode
TurnCode