Working with the Google Location API

前端 未结 6 2104
别跟我提以往
别跟我提以往 2021-02-06 05:50

Forgive me for my ignorance, but after several hours of searching, I\'m having little luck.

Anyway, I am attempting to write a small desktop application that will allow

6条回答
  •  广开言路
    2021-02-06 06:26

    By using GuigleAPI nuget you can simply do:

    GoogleGeocodingAPI.GoogleAPIKey = "YOUR API KEY";
    var result = await GoogleGeocodingAPI.GetCoordinatesFromAddressAsync("100 Market St, Southbank");
    var latitude = result.Item1;
    var longitude = result.Item2;
    

    Just install it with the nuget command Install-Package Easyforce.GuigleAPI and you're good to go.

    Check this answer for more details: https://stackoverflow.com/a/44484010/1550202

提交回复
热议问题