Reverse geocoding playground

Reverse geocode a clicked point, with every request option on one panel

View on GitHub
SDK 1.0.0-rc.7

Click anywhere, and a white pin marks the query, a red pin marks the address it matched and a dashed line shows the offset.

  • reverseGeocode takes radius, heading, area types and geopolitical view in one options object, so every panel knob is a property, not a separate call.
  • The match’s originalPosition is where the service snapped the query, so the dashed line comes off the response.
  • The entryPoints option on the red pin’s PlacesModule draws the entrances the service places on the road network.
  • BaseMapModule.events.on('click') makes the whole map the input, and createLatestRequest retires the previous click’s request.

Related examples