Geocode

Find IP to location, location to latitude-longitude and reverse.

TRY APP

Geocode IP

Find an associated address, or nearest address from a given IP address as GeoJSON.

GET /geocode/ip

Request

Parameter Description Type Required Default
ip IP address String Yes

Response

Geocode Address

Find an associated latitude, longitude and other information for a given location as GeoJSON, which you can use to place markers on a map, or position the map.

GET /geocode/address

Request

Parameter Description Type Required Default
location Location to geocode String Yes
longitude Location longitude Number No
latitude Location latitude Number No
osm_tag OSM tag for filtering String No
limit Limit the number of records returned Number No

Response

Parameter Description Type
type GeoJSON type String
features GeoJSON features [Feature]

Feature

Parameter Description Type
type GeoJSON type String
geometry GeoJSON geometry Geometry
properties Additional properties Object

Geometry

Parameter Description Type
type GeoJSON geometry type String
coordinates GeoJSON coordinates (longitude, latitude) [Number]
properties Additional properties Object

Properties

  • osm_id
  • osm_type
  • extent
  • osm_key
  • osm_value
  • name
  • country
  • city
  • state
  • postcode

Geocode Reverse

Find an associated address, or nearest address from a given latitude and longitude as GeoJSON.

GET /geocode/reverse

Request

Parameter Description Type Required Default
longitude Location longitude Number Yes
latitude Location latitude Number Yes
limit Limit the number of records returned Number No

Response

© 2018 LabStack. All Rights Reserved.