Search Map Objects by Latitude and Longitude via REST API [JavaScript/AJAX Code]

Search the objects on the map using a latitude/longitude pair by sending a POST request to the Mapquest.com REST API. Replace {mapquest_apikey} with your own Mapquest API key. The JavaScript/AJAX code was automatically generated for the Search Map Objects By Latitude And Longitude Via REST API example.
Search Map Objects by Latitude and Longitude via REST API [JavaScript/AJAX Code] Send
POST /search/v2/radius?key={mapquest_apikey} HTTP/1.1
Host: www.mapquestapi.com
Content-Type: application/json
Content-Length: 132

{
  "origin": {
    "latLng": {
      "lat": 39.750307,
      "lng": -104.999472
    }
  },
  "options": {
    "maxMatches": 5
  }
}
Updated: Viewed: 7001 times
JavaScript/AJAX code for Search Map Objects By Latitude And Longitude Via REST API example

JavaScript/AJAX code for Search Map Objects By Latitude And Longitude Via REST API Example

This JavaScript/AJAX code snippet was generated automatically for the Search Map Objects By Latitude And Longitude Via REST API example.
<< Back to the Search Map Objects By Latitude And Longitude Via REST API example

Generate code snippets for JavaScript/AJAX and other programming languages

Convert your Search Map Objects By Latitude And Longitude Via REST API request to the PHP, JavaScript/AJAX, Node.js, Curl/Bash, Python, Java, C#/.NET code snippets using the JavaScript/AJAX code generator.