small medium large xlarge

Generic-user-small
20 Sep 2016, 14:27
Daniel Koffler (1 post)

Hello,

I am facing a problem with the Reverse Geocode API.

I am entering:

curl -H ‘Content-Type: application/json’ -H ‘Accept: application/json’ http://localhost:3000/reverse_geocode\?lat=37.33233141\&long=-122.0312186

Result:

URI::InvalidURIError (URI must be ascii only “http://www.mapquestapi.com/geocoding/v1/reverse?key=xxx&location=37.33233141,-122.0312186”): app/models/reverse_geocode_request.rb:14:in for' app/controllers/reverse_geocode_controller.rb:12:in reverse_geocode’

Kindly let me know what I missed Thank you Daniel

Mypicture_pragsmall
16 Sep 2016, 16:01
Tony Hillerson (39 posts)

First, I’d be careful about posting your API key to a public forum :)

Second, it looks like a unicode character got into your URL. Try fixing that by typing it out again on the command line…

You must be logged in to comment