Search code examples
javajsonmapquest

How to Extract location and latlng from JSON produced by Mapquest geocoder api?


I want to extract the location and its latlng from a JSON string returned by the MapQuest Geocoder Api in java.


Solution

  • Convert the JSON response to an Object using Jakson and get the latlng from the object.

    JSON to Java Object tutorial might help.