gmaps-api-net
gmaps-api-net copied to clipboard
how to do a reverse geocode request
Hi, how can I use this library to do a reverse geocode request? If I try to assign the coordinates to the viewport property of the request receive an error
I dont think the library supports that at the moment. Might try looking through the code to find out. I didnt write that part of it, was added by someone else
On Tue, Oct 10, 2017 at 12:08 PM, Luca Morelli [email protected] wrote:
Hi, how can I use this library to do a reverse geocode request? If I try to assign the coordinates to the viewport property of the request receive an error
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ericnewton76/gmaps-api-net/issues/108, or mute the thread https://github.com/notifications/unsubscribe-auth/ACG_zIa4J8Sl0Lm_qA5o7vAbhABHnTkEks5sq5aRgaJpZM4P0MOh .
--
E.Newton Senior Software Craftsman Cell: 407-497-1429 EMail: [email protected]
What exactly do you mean? Doesnt this code do reverse geocoding?
var request = new GeocodeRequest();
request.Location = new LatLng(30,-70);
var service = new GeocodeService();
var result = service.GetResponse(request);
@ericnewton76 is this GoecodeRequest available?
@rickduarte did you find a solution for this? I'm not seeing a request class that has a "Location" property anywhere.
@rickduarte @pkmccaffrey There was a misstype, @ericnewton76 probably meant
var request = new GeocodeRequest();
request.Address = new LatLng(30,-70);
var service = new GeocodeService();
var result = service.GetResponse(request);
I've verified that reverse geocoding does work with the latest code suggestion from @nkovacic above.