gmaps-api-net icon indicating copy to clipboard operation
gmaps-api-net copied to clipboard

how to do a reverse geocode request

Open lucamorelli opened this issue 7 years ago • 6 comments

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

lucamorelli avatar Oct 10 '17 16:10 lucamorelli

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]

ericnewton76 avatar Oct 10 '17 17:10 ericnewton76

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 avatar Oct 22 '17 17:10 ericnewton76

@ericnewton76 is this GoecodeRequest available?

rickduarte avatar Dec 08 '17 18:12 rickduarte

@rickduarte did you find a solution for this? I'm not seeing a request class that has a "Location" property anywhere.

pkmccaffrey avatar Mar 23 '18 15:03 pkmccaffrey

@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);

nkovacic avatar Apr 23 '18 09:04 nkovacic

I've verified that reverse geocoding does work with the latest code suggestion from @nkovacic above.

theprash avatar Mar 08 '23 16:03 theprash