API DOCUMENTATION

Forward Geocoding

Forward Geocoding uses address information to return the coordinates of the area as a coordinate list of polygons.

get

https://maps.fatos.biz/fatos/api/geocoding/forward?(query string)

 

Parameter
Required Parameter Description
key Your API Key,See the API Key Issuance page for information on using keys.
format [ xml | json ] , output type methods
q String to search keyword.A comma is optional in the search keyword, but it's a good idea to include it to improve performance.
q(Korean) encodeURI(keyword),
Used when the keyword is Korean.

Optional Parameter Description
polygon [ 1 | 0 ],
Whether or not to display areas on the retrieved items
addressdetails [ 1 | 0 ],
Whether to separate addresses into details
acceptlanguage countrycode[,countrycode][,countrycode]
Limit search results to specific countries(sg:singapore,th:thailand,id:indonesia,kr:korea,us:united states..)

 

Example

https://maps.fatos.biz/fatos/api/geocoding/forward?key=(Your API Key)&q=460 alexandra road&format=json&polygon=1&addressdetails=1

{
  "address_type": "way",
  "boundingbox": ["1.2783626", "1.2785892", "103.8029343", "103.8030164"],
  "polygonpoints": [["103.8029343", "1.2783626"], ["103.8030164", "1.2785892"]],
  "lat": "1.2783626",
  "lon": "103.8029343",
  "display_name":
    "Alexandra Road, Alexandra, Sentosa Cove, Southwest, 119578, Singapore",
  "class": "highway",
  "type": "primary",
  "importance": 0.30000000000000004,
  "address": {
    "road": "Alexandra Road",
    "hamlet": "Sentosa Cove",
    "county": "Southwest",
    "suburb": "Alexandra",
    "postcode": "119578",
    "country": "Singapore",
    "country_code": "sg"
  }
};

 

Return : JSON type

polygonpoints(using value) Coordinate value for displaying polygon area.

…(omit)…

display_name Detailed address of search keyword