Click here to Skip to main content
15,887,485 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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.
Posted
Updated 1-Nov-13 6:51am
v2

If you are looking for US HealthCare Providers then you can have a look into

http://www.factual.com/products/healthcare[^]
 
Share this answer
 
Comments
Erick Garcia 1-Nov-13 14:24pm    
i'm looking for general places
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 -
C#
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);

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.
 
Share this answer
 
v2
Comments
thatraja 4-Nov-13 10:04am    
Surely it'll help many people in future. And 5! for your solution, keep doing the same. Thank you. Cheers!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900