哪个api更适合获得兴趣点? [英] Which api is better to get a point of interest?

查看:97
本文介绍了哪个api更适合获得兴趣点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用半径将医院靠近某个位置,这是在wp8上工作,我需要知道如何获取这些信息并获得更好的api来获取此信息?

拜托,伙计们,我非常沮丧,因为我有几天的工作,我无法完成它。

i'm trying to get the hospitals near a location using the radius, this is working on wp8, and i need to know how to get this information and whats the better api to get this?
please guys i'm very frustrated because i have a couple of days working on this and i can't finish it.

推荐答案

如果您正在寻找美国医疗保健提供者,那么您可以查看



http://www.factual.com/products/healthcare [ ^ ]
If you are looking for US HealthCare Providers then you can have a look into

http://www.factual.com/products/healthcare[^]


我找到了使用google放置api的解决方案,并在项目解决方案上安装了httpClient的块包,你可以在下一个链接上执行此操作。 />


https://www.nuget.org/packages/ Microsoft.Net.Http



最终代码在这里 -

i found the solution using the google places api, and installing on the project solution the nugget package of httpClient, you can do this on the next link.

https://www.nuget.org/packages/Microsoft.Net.Http

And the final code is in here -
HttpClient client = new HttpClient();

string baseUrl = "https://maps.googleapis.com/maps/api/place/search/json?key=YourkeyHere&location=" + lat + "," + lon + "&radius=5000&keyword=hospital&sensor=true";

string googleResult = await client.GetStringAsync(baseUrl);



最后的结果是一个必须从json反序列化为对象的字符串,有很多方法可以做到这一点,所以你可以选择自己的路径。



感谢每一个人的帮助,但这就是我想要的,我希望这个解决方案可以帮助别人。


The final result is an string that has to be Deserialized from json to an object, there are many way to do this, so you can choose your own path.

Thanks every one for their help but this is, what i was looking for and i hope that this solution, can help someone.


这篇关于哪个api更适合获得兴趣点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆