1. Places suggestions
Curl request
$ curl 'https://utils.limosys.net/geo/places?query=QUERY_STRING&key=YOUR_GEO_API_KEY' -i -X GET \
-H 'Content-Type: application/json;charset=UTF-8' \
-H 'Accept: application/json'
HTTP request
GET /geo/places?query=QUERY_STRING&key=YOUR_GEO_API_KEY HTTP/1.1
Content-Type: application/json;charset=UTF-8
Accept: application/json
Host: utils.limosys.net
HTTP response
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: POST, GET, PUT, OPTIONS, DELETE
Access-Control-Max-Age: 3600
Access-Control-Allow-Headers: origin, content-type, accept, authorization
Access-Control-Allow-Credentials: true
Access-Control-Expose-Headers: Set-Cookie
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 821
[{"addressString":"PREDICTION 1","osmPlaceId":"PLACE_ID_1","coord":{"lat":-25.0,"lon":25.0},"boundsSW":{"lat":-25.0,"lon":25.0},"boundsNE":{"lat":-25.0,"lon":25.0}},{"addressString":"PREDICTION 2","osmPlaceId":"PLACE_ID_2","coord":{"lat":-25.0,"lon":25.0},"boundsSW":{"lat":-25.0,"lon":25.0},"boundsNE":{"lat":-25.0,"lon":25.0}},{"addressString":"PREDICTION 3","osmPlaceId":"PLACE_ID_3","coord":{"lat":-25.0,"lon":25.0},"boundsSW":{"lat":-25.0,"lon":25.0},"boundsNE":{"lat":-25.0,"lon":25.0}},{"addressString":"PREDICTION 4","osmPlaceId":"PLACE_ID_4","coord":{"lat":-25.0,"lon":25.0},"boundsSW":{"lat":-25.0,"lon":25.0},"boundsNE":{"lat":-25.0,"lon":25.0}},{"addressString":"PREDICTION 5","osmPlaceId":"PLACE_ID_5","coord":{"lat":-25.0,"lon":25.0},"boundsSW":{"lat":-25.0,"lon":25.0},"boundsNE":{"lat":-25.0,"lon":25.0}}]
HTTPie request
$ http GET 'https://utils.limosys.net/geo/places?query=QUERY_STRING&key=YOUR_GEO_API_KEY' \
'Content-Type:application/json;charset=UTF-8' \
'Accept:application/json'
Request body
Request parameters
Parameter | Description |
---|---|
|
Query string |
|
Limosys API Key |
|
Language code of response (Optional) |
|
Array of contry codes - comma separated (Optional) |
|
Search Proximity Lat,Lon (Optional) |
|
[DEPRECATED] Search Proximity Latitude (Optional) |
|
[DEPRECATED] Search Proximity Longitude (Optional) |
|
Array of coordinates for search bounds: SW Lat, Lon, NE Lat, Lon (Optional) |
|
Whether bounds should be forced or preferred "yes" to force (Optional) |
|
Force fetch from thirdparty "yes" or "no" - default: server decides |
Response body
[{"addressString":"PREDICTION 1","osmPlaceId":"PLACE_ID_1","coord":{"lat":-25.0,"lon":25.0},"boundsSW":{"lat":-25.0,"lon":25.0},"boundsNE":{"lat":-25.0,"lon":25.0}},{"addressString":"PREDICTION 2","osmPlaceId":"PLACE_ID_2","coord":{"lat":-25.0,"lon":25.0},"boundsSW":{"lat":-25.0,"lon":25.0},"boundsNE":{"lat":-25.0,"lon":25.0}},{"addressString":"PREDICTION 3","osmPlaceId":"PLACE_ID_3","coord":{"lat":-25.0,"lon":25.0},"boundsSW":{"lat":-25.0,"lon":25.0},"boundsNE":{"lat":-25.0,"lon":25.0}},{"addressString":"PREDICTION 4","osmPlaceId":"PLACE_ID_4","coord":{"lat":-25.0,"lon":25.0},"boundsSW":{"lat":-25.0,"lon":25.0},"boundsNE":{"lat":-25.0,"lon":25.0}},{"addressString":"PREDICTION 5","osmPlaceId":"PLACE_ID_5","coord":{"lat":-25.0,"lon":25.0},"boundsSW":{"lat":-25.0,"lon":25.0},"boundsNE":{"lat":-25.0,"lon":25.0}}]
Response fields
Path | Type | Description |
---|---|---|
|
|
Array of suggestions - Address object with less details |
|
|
Address display string |
|
|
OSM Place ID (Optional) - if not present, object should already contain all details |
|
|
Coordinate LatLng |
|
|
Place bounds SW LatLng |
|
|
Place bounds NE LatLng |
|
|
If true then all details are present and no need to call details by place id (Optional) |
|
|
Airport Code - if any (Optional) |
|
|
Town (Optional) |
|
|
Country (Optional) |
|
|
Country Code (Optional) |
|
|
Building Number (Optional) |
|
|
State (Optional) |
|
|
Two-Letter State Code (Optional) |
|
|
Zip Code (Optional) |
|
|
District (Optional) |
|
|
Neighborhood (Optional) |
|
|
Suburb (Optional) |
|
|
Public Building (Optional) |
2. Place details
Curl request
$ curl 'https://utils.limosys.net/geo/places/WPLACE_ID?key=YOUR_GEO_API_KEY' -i -X GET \
-H 'Content-Type: application/json;charset=UTF-8' \
-H 'Accept: application/json'
HTTP request
GET /geo/places/WPLACE_ID?key=YOUR_GEO_API_KEY HTTP/1.1
Content-Type: application/json;charset=UTF-8
Accept: application/json
Host: utils.limosys.net
HTTP response
HTTP/1.1 200 OK
Access-Control-Allow-Origin: *
Access-Control-Allow-Methods: POST, GET, PUT, OPTIONS, DELETE
Access-Control-Max-Age: 3600
Access-Control-Allow-Headers: origin, content-type, accept, authorization
Access-Control-Allow-Credentials: true
Access-Control-Expose-Headers: Set-Cookie
Content-Type: application/json
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
Cache-Control: no-cache, no-store, max-age=0, must-revalidate
Pragma: no-cache
Expires: 0
Strict-Transport-Security: max-age=31536000 ; includeSubDomains
X-Frame-Options: DENY
Content-Length: 502
{"type":"building","typeDetail":"building","addressString":"ADDRESS","osmPlaceId":"WPLACE_ID","coord":{"lat":25.0,"lon":-25.0},"boundsSW":{"lat":25.0,"lon":-25.0},"boundsNE":{"lat":25.0,"lon":-25.0},"town":"SAMPLE_CITY","country":"SAMPLE_COUNTRY","countryCd":"SCC","building":"555","state":"New York","stateCd":"NY","zip":"10001","suburb":"SAMPLE_SUBURB","district":"SAMPLE_DISTRICT","neighbourhood":"SAMPLE_HOOD","publicBuilding":"10000","details":true,"sourceStr":"LS_API","geocodeSourceStr":"LOCAL"}
HTTPie request
$ http GET 'https://utils.limosys.net/geo/places/WPLACE_ID?key=YOUR_GEO_API_KEY' \
'Content-Type:application/json;charset=UTF-8' \
'Accept:application/json'
Path parameters
Parameter | Description |
---|---|
|
OSM Place ID |
Request body
Request parameters
Parameter | Description |
---|---|
|
Limosys API Key |
|
Language code of response (Optional) |
Response body
{"type":"building","typeDetail":"building","addressString":"ADDRESS","osmPlaceId":"WPLACE_ID","coord":{"lat":25.0,"lon":-25.0},"boundsSW":{"lat":25.0,"lon":-25.0},"boundsNE":{"lat":25.0,"lon":-25.0},"town":"SAMPLE_CITY","country":"SAMPLE_COUNTRY","countryCd":"SCC","building":"555","state":"New York","stateCd":"NY","zip":"10001","suburb":"SAMPLE_SUBURB","district":"SAMPLE_DISTRICT","neighbourhood":"SAMPLE_HOOD","publicBuilding":"10000","details":true,"sourceStr":"LS_API","geocodeSourceStr":"LOCAL"}
Response fields
Path | Type | Description |
---|---|---|
|
|
Address Type |
|
|
Address Detailed Type |
|
|
Address display string |
|
|
OSM Place ID |
|
|
Coordinate LatLng |
|
|
Place bounds SW LatLng |
|
|
Place bounds NE LatLng |
|
|
Airport Code - if any (Optional) |
|
|
Town |
|
|
Country |
|
|
Country Code |
|
|
Building Number |
|
|
State |
|
|
Two-Letter State Code |
|
|
Zip Code |
|
|
District |
|
|
Neighborhood |
|
|
Suburb |
|
|
Public Building |
|
|
(Deprecated) Source of data (enum) |
|
|
Source of data |
|
|
(Deprecated) Source of gps coordinates (enum) |
|
|
Source of gps coordinates |
|
|
Address contains details - true or false |