Request |
Content |
Endpoint |
{{DataBaseUrl}}/autocomplete? |
Method |
HTTP GET |
Header Param |
Content |
Content-type |
application/json |
Accept |
*/* |
Accept-Encoding |
gzip,deflate,br |
Url Request Param |
Content |
q |
Địa chỉ không có dấu (Encoded URL) |
limit |
Số lượng records trả ở response |
lat |
Vĩ độ reference |
lon |
Kinh độ reference |
zoom |
Zoom level, từ 12 tới 19 |
lang |
Ngôn ngữ (default là vi) |
Json Response |
Mô tả |
type |
Loại data collection |
{{geocoding}}.version |
Phiên bản geocoding |
{{geocoding}}.query |
Query request từ client |
{{feat}}.updatedAt |
Timestamp – Thời điểm cập nhật Agent |
features |
Array của kết quả theo query |
[[features]].type |
Loại data |
[[features]].type |
Loại data |
[[features]].geometry.coordinates |
Array của kinh độ và vĩ độ (format [long,lat]) |
[[features]].geometry.type |
Loại data |
[[features]].properties.geocoding.type |
Loại địa điểm (nhà / văn phòng / trạm bán xăng dầu…) |
[[features]].properties.geocoding.label |
Full địa chỉ |
[[features]].properties.geocoding.name |
Tên của địa chỉ |
[[features]].properties.geocoding.housenumber |
Số nhà |
[[features]].street |
Tên phố |
[[features]].properties.geocoding.postcode |
Mã bưu điện |
[[features]].properties.geocoding.city |
Thành phố / tỉnh |
[[features]].properties.geocoding.citycode |
Mã thành phố / tỉnh |
[[features]].properties.geocoding.id |
Identifier của địa điểm |
[[features]].properties.geocoding.administrative_regions |
Collection của địa giới hành chính bao gồm phường, quận, tỉnh và đất nước. |
[[features]].properties.geocoding.administrative_regions.id |
Identifier của địa giới hành chính |
[[features]].properties.geocoding.administrative_regions.level |
Level của địa giới hành chính |
[[features]].properties.geocoding.administrative_regions.name |
Tên của địa giới hành chính |
[[features]].properties.geocoding.administrative_regions.zip_codes |
Collection của mã bưu điện của địa giới hành chính |
[[features]].properties.geocoding.administrative_regions.coord.lon |
Kinh độ trung tâm của địa giới hành chính |
[[features]].properties.geocoding.administrative_regions.coord.lat |
Vĩ độ trung tâm của địa giới hành chính |
[[features]].properties.geocoding.administrative_regions.bbox |
Boundaries của địa giới hành chính |
[[features]].properties.geocoding.administrative_regions.zone_type |
Loại địa giới hành chính |
[[features]].properties.geocoding.administrative_regions.parent_id |
Parent identifier của địa giới hành chính (nếu có) |
Error Code |
Mô tả |
401 |
Sai thông tin identifier/password |