gpt4 book ai didi

用于 Google map API 支持的 .NET 库

转载 作者:行者123 更新时间:2023-12-03 03:05:15 24 4
gpt4 key购买 nike

我正在寻找 Google map 的 .NET 库或包装器,其中包含 C# 类形式的所有响应类型。

我希望能够做这样的事情:

var url = "http://maps.googleapis.com/maps/api/geocode/json?address=Wellington&sensor=false";

//Utility functions would be ideal
string jsonResponse = GoogleMaps.GetJson(url);
string jsonResponse = GoogleMaps.GeocodeAddress("Wellington");

我希望能够使用如下结果:

GeocodeResponse r = JsonConvert.DeserializeObject<GeocodeResponse>(jsonResponse);    //I am using Json.NET

if(r.status.Equals("OK"))
{
DoSomethingWith(r.result.formatted_address); //intellisense documentation for all the bits in the result would be great
}

这样的事情存在吗?

这有点像这些问题:

但是答案并不是我的意思,我不是在寻找拖放 map 控件。

最佳答案

此 API 仍在开发中,但可能会为您提供所需的内容:

http://code.google.com/p/gmaps-api-net/

关于用于 Google map API 支持的 .NET 库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5288194/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com