Page 2 of 2

Issue with Mapquest API service response...

Posted: Fri Jun 21, 2013 12:34 am
by Igor

Hello,

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


Issue with Mapquest API service response...

Posted: Fri Jun 21, 2013 1:42 am
by Igor

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


Issue with Mapquest API service response...

Posted: Mon Jun 24, 2013 2:00 pm
by John Herdean

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."
]
}


Issue with Mapquest API service response...

Posted: Mon Jun 24, 2013 2:02 pm
by John Herdean

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...


Issue with Mapquest API service response...

Posted: Mon Jun 24, 2013 4:47 pm
by John Herdean

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?


Issue with Mapquest API service response...

Posted: Mon Jun 24, 2013 4:49 pm
by maxkatz

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


Issue with Mapquest API service response...

Posted: Mon Jun 24, 2013 5:53 pm
by John Herdean

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 '{', '['


Issue with Mapquest API service response...

Posted: Mon Jun 24, 2013 6:10 pm
by maxkatz

Try taking out the "callback" parameter.


Issue with Mapquest API service response...

Posted: Mon Jun 24, 2013 6:48 pm
by John Herdean

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