Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Issue with Mapquest API service response...

Hello,

Try to remove "renderReverse(" at the beginning and ");" at the end. Then make validation.

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Issue with Mapquest API service response...

Please try to use "Reverse Geocode" in format "Key/Value Pair"
http://www.mapquestapi.com/geocoding/...

John Herdean
Posts: 0
Joined: Tue May 14, 2013 3:56 am

Issue with Mapquest API service response...

Good morning guys. How can I remove "renderReverse(" at the beginning and ");" at the end? Thats the response... Thats not in my control.

I tried using the Key/Value Pair and I get an error response from mapquest:

},
"statuscode":400,
"messages":[
"Illegal argument from request: Insufficient info for location."
]
}

John Herdean
Posts: 0
Joined: Tue May 14, 2013 3:56 am

Issue with Mapquest API service response...

Question for you guys, have you guys ever had anybody use mapquest maps api and successful with Appery? Just wondering... And If so, what is the best way to go about this?

The main reason why Im going with mapquest instead of google api is because mapquest is free...

John Herdean
Posts: 0
Joined: Tue May 14, 2013 3:56 am

Issue with Mapquest API service response...

yes and I did remove "renderReverse(" at the beginning and ");" at the end of my test response in appery. I was able to automatically create a response with that removed, however when I tested to see if the response loads the info into the local storage variables i created - only 'null' is there... Is there a way that appery can ignore that part so it can read the rest?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Issue with Mapquest API service response...

You need to make sure the MapQuest API returns valid JSON. Only valid JSON will work in Appery.io. You can always test the JSON returned for validity at http://jsonlint.com

John Herdean
Posts: 0
Joined: Tue May 14, 2013 3:56 am

Issue with Mapquest API service response...

How am I going to control what mapquest does? I tested it at that link you provided...
this is my full url when i tested there:

http://www.mapquestapi.com/geocoding/...

and i get the same results in the same format. In the 'Results' body i get this back:

Parse error on line 1:
renderReverse({
^
Expecting '{', '['

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Issue with Mapquest API service response...

Try taking out the "callback" parameter.

John Herdean
Posts: 0
Joined: Tue May 14, 2013 3:56 am

Issue with Mapquest API service response...

Wow, OMG thanks guys, taking out the callback finally did the trick... You guys are awesome:)

Return to “Issues”