Longdo

Longdo Map

The Longdo Map REST API offers comprehensive GIS APIs and data solutions: Place Suggestions & Search Geocoding & Reverse Geocoding Address Extraction Route…

Maps & location#geocoding

Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.

Overview

The Longdo Map REST API offers comprehensive GIS APIs and data solutions:

  • Place Suggestions & Search
  • Geocoding & Reverse Geocoding
  • Address Extraction
  • Route Planning
  • Coverage Area Calculation
  • Statistical & Extra Data

Get started with a free Longdo Map API Key.

Endpoints 35

Place

  • GETSuggesthttps://search.longdo.com/mapsearch/json/suggest?keyword=สุขุมวิทExampleMinimum paramsWith area and limit
  • GETSearchhttps://search.longdo.com/mapsearch/json/searchExampleMinimum paramsWith area and limit
  • GETSmartSearchhttps://search.longdo.com/smartsearch/json/searchExampleSearch addressblog
  • GETNearby POI/POIService/json/searchExampleMinimum paramsWith tag, area and limit
  • GETGet POI by ID/POIService/json/get?id=A10000001<label>Example</label><ul><li><a href="https://api.longdo.com/POIService/json/get?id=A10000001&key=fortestonlydonotuseinproduction!" target="_blank">By Longdo…
  • GETCluster (v3)/POIService/json/cluster/:zoom/:x/:y/:locale<label>Example</label><ul><li><a…
  • GETCluster (v2)/POIService/json/cluster/:config/:zoom/:tilecode/:locale<label>Example</label><ul><li><a…

Address

  • GETExtract addresshttps://search.longdo.com/smartsearch/json/extract_address/v2?text=ถนนสุขุมวิท กรุงเทพมหานครExampleMinimum paramsNo correctionCensor
  • GETGeocodinghttps://search.longdo.com/addresslookup/api/addr/geocoding?text=ถนนสุขุมวิท กรุงเทพมหานครExampleMinimum paramsblog
  • GETReverse geocoding/map/services/addressExampleWith idWith lat/lon, road only
  • GETBatch reverse geocoding/map/services/addressesExampleSearch 2 locations without elevationSearch with WKT
  • GETGeocode / Postcode/POIService/json/addressExampleWith geocodeWith postcode, Result in English

Route

  • GETCalculate route/RouteService/json/route/guideExampleMinimum paramsAvoid traffic mode, Use road/ferry/tollway, Result in Thai
  • GETGet route path/RouteService/json/route/path?id=22255908
  • GETGet Calculate route in GeoJSON/RouteService/geojson/routeExampleMinimum paramsMinimum distance mode, Use road/tollway, Result in Thai
  • GETCalculate route matrix/RouteService/json/route/matrix?flon[0]=100.5383&flon[1]=100.5602&flat[0]=13.7649&flat[1]=13.7367&tlon[0]=100.5998&tlon[1]=100.6023&tlat[0]=13.5991&tlat[1]=13.669ExampleMinimum params 2x2 matrix
  • GETSnap to road/RouteService/json/route/snapExampleExample 1
  • GETTraffic speed/RouteService/json/traffic/speed?lon=100.5383&lat=13.7649ExampleMinimum paramsNo traffic data
  • GETGet span area/RouteService/json/span/get?flon=100.5383&flat=13.7649ExampleMinimum paramsOnly boundary
  • POSTTSP (Travelling Salesman Problem) - Route Planner/route-tsp-v2ExampleBlog
  • GETโปรไฟล์ถนนที่ใกล้จุดที่ระบุที่สุดhttps://map.longdo.com/ws/route/profile?lat=13.7563&lon=100.5018คืนโปรไฟล์ถนนที่ใกล้จุดที่ระบุที่สุด (ค้นหาในรัศมี 500 เมตร) พร้อมข้อมูลความชัน (steep), ทางโค้ง (curve) และทางแยก…

Extra

  • GETสืบค้นข้อมูลพิกัดจากหมายเลขทางหลวง และหลักกิโลเมตร (Get location by route no.)https://map.longdo.com/ws/route/location?route_no=101&km=15ExampleMinimum params
  • GETสืบค้นข้อมูลหมายเลขทางหลวง และหลักกิโลเมตร จากพิกัดทางภูมิศาสตร์ (ละติจูด, ลองจิจูด) (Get route by location)https://map.longdo.com/ws/route/name?lat=13.7649&lon=100.5383ExampleMinimum params
  • GETArea info/GeoServiceMS/json/areainfo?polygon={"coordinates":[[[100.53864,13.73430],[100.54574,13.73397],[100.54439,13.72648],[100.53681,13.72965],[100.538640,13.73430]]],"type":"Polygon"}ExampleMinimum params
  • GETสืบค้นข้อมูลจำนวนประชากร จากพื้นที่ทางภูมิศาสตร์ (Get Facebook population)https://map.longdo.com/ws/population/facebookหมายเหตุ: ต้องระบุ wkt หรือ geocode อย่างใดอย่างหนึ่ง (only one of wkt or geocode must be provided)Data SourceThailand: High Resolution Population Density…
  • GETสืบค้นข้อมูลรายจ่ายครัวเรือน (ระดับ จังหวัด)https://map.longdo.com/ws/stats/debt?year=2560Data Sourceสำนักงานสถิติแห่งชาติ
  • GETสืบค้นข้อมูลเงินฝาก (อำเภอ จังหวัด)https://map.longdo.com/ws/stats/deposit?year=2560&month=1Data Sourceสำนักงานสถิติแห่งชาติ
  • GETสืบค้นข้อมูลจำนวนหลังคาเรือน (ระดับ หมู่บ้าน ตำบล อำเภอ จังหวัด)https://map.longdo.com/ws/stats/household?year=2560Data Sourceสำนักบริหารการทะเบียน กรมการปกครอง
  • GETรายได้ประชากร (ระดับ จังหวัด)https://map.longdo.com/ws/stats/incomeData Sourceสำนักงานสถิติแห่งชาติ
  • GETสืบค้นข้อมูลสินเชื่อ (อำเภอ จังหวัด)https://map.longdo.com/ws/stats/loan?year=2560&month=1Data Sourceสำนักงานสถิติแห่งชาติ
  • GETสืบค้นข้อมูลจำนวนประชากรไทย (ระดับ หมู่บ้าน ตำบล อำเภอ จังหวัด)https://map.longdo.com/ws/stats/populationData Sourceสำนักบริหารการทะเบียน กรมการปกครอง
  • POSTสืบค้นข้อมูลจำนวนเขตการปกครอง (ระดับ หมู่บ้าน ตำบล อำเภอ จังหวัด)https://map.longdo.com/ws/stats/political-area-countAt least one of wkt or geocode must be provided in the JSON body.
  • POSTสืบค้นข้อมูลผังเมือง (ระดับ หมู่บ้าน ตำบล อำเภอ จังหวัด)https://map.longdo.com/ws/stats/landuse-planAt least one of wkt or geocode must be provided in the JSON body.
  • POSTสืบค้นข้อมูลประเภทการใช้ประโยชน์ที่ดิน (ระดับ หมู่บ้าน ตำบล อำเภอ จังหวัด)https://map.longdo.com/ws/stats/land-useAt least one of wkt or geocode must be provided in the JSON body.
  • POSTสืบค้นข้อมูลเขตพื้นที่ป่าไม้https://map.longdo.com/ws/stats/forestAt least one of wkt or geocode must be provided in the JSON body.

API details

Base URL
https://api.longdo.com
Authentication
An API key in the key query parameter
Operations
35 operations on 35 pathsGET 30POST 5
Main resources
Extra 14Route 9Place 7Address 5
Response formats
application/json application/geo+json
Description format
OpenAPI 3.1.0, API version 2.4.0

How to test the Longdo Map in Swastik Codes

  1. Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
  2. Fork it into your workspaceChoose a workspace. You get your own copy of the Longdo Map collection, without the publisher's secrets.
  3. Add your credentialsThis API uses an API key in the key query parameter. Add yours in the collection's variables or an environment; the requests already reference it.
  4. Send a requestPick an endpoint, for example “Suggest” (GET https://search.longdo.com/mapsearch/json/suggest?keyword=สุขุมวิท), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the Longdo Map?

The Longdo Map REST API offers comprehensive GIS APIs and data solutions: Place Suggestions & Search Geocoding & Reverse Geocoding Address Extraction Route… It is listed under Maps & location and has 35 endpoints.

Who publishes the Longdo Map?

It is listed from Longdo's public API description (an OpenAPI document), not published by Longdo on Swastik Codes. Anyone who controls map.longdo.com can claim the profile by adding a DNS TXT record.

What is the base URL of the Longdo Map?

Requests go to https://api.longdo.com. Endpoint paths are added to this base URL.

How do I authenticate with the Longdo Map?

With an API key in the key query parameter.

How many endpoints does the Longdo Map have?

35 operations on 35 paths (30 GET, 5 POST). The largest groups are Extra, Route, Place, Address.

Is forking the Longdo Map free?

Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.

Suggest an API

Tell us which public API is missing. We check it, then add it here with its endpoints when it has an OpenAPI (Swagger) description.