POST Radius search (origin doesen't work)

3 posts / 0 new
Last post
frank.miller
POST Radius search (origin doesen't work)

URL: http://www.mapquestapi.com/search/v2/search?key=MY_KEY
Body:
{
  "origin": {
    "latLng": {
      "lat": 39.750307,
      "lng": -104.999472
    }
  },
  "options": {
    "maxMatches": 4,
    "radius": 300,
    "shapeFormat": "simple"
  },
  "remoteDataList": [{
      "key": "1",
      "name": "190718",
      "shapePoints": [
          34.742845076651,
        -106.62276484085
      ]
  },{
      "key": "2",
      "name": "222222",
      "shapePoints": [
         26.120556418306,
        -80.144781538417
      ]
  }]
}

it find mine location (origin), but im write another location, it ignore "origin". Can someone help?


MQBrianCoakley
If using lat/lng for the
If using lat/lng for the search origin, try using shapePoints since origin is intended for address strings.

frank.miller
Thank you! That works now

Thank you! That works now