Reverse geocode

Turn a coordinate into a street address, pin it on the map and read the whole response beside it

View on GitHub
SDK 1.0.0-rc.7

A pair of coordinates goes in, the map pins the street address the service matched to them, and the panel prints the response exactly as your code receives it.

  • reverseGeocode resolves to one GeoJSON Feature, not a service envelope, so JSON.stringify is the whole rendering step for the panel.
  • Its properties carry the address fields and the matched originalPosition, typed.
  • PlacesModule.show takes that same feature as it stands once its properties are there, with no layer wiring in between.

Related examples