How to search for a hospital near a location (by city, state, zip, address) using Google maps API V3.
Yahoo has a pretty good rest based web service where we can create a NSUrl object with this url (http://local.yahooapis.com/LocalSearchService/V2/localSearch?appid=myappid&query=hospital&zip=10301) and pass it to a NSParser which will return all the hospitals near that zip.
How can we do the something like this using google api?? We have to use google api.
Check out the Google Places API-- it's fairly recent but should do exactly what you're looking for: http://code.google.com/apis/maps/documentation/javascript/places.html
Related
Use Case:
I've got a search box where the intention is to search for addresses, cities and businesses, and up to 5 matching locations will be returned. Then, I'll use the geocoder to get lat/lon coordinates for a selected location based upon locationId.
Desired Outcome: The geocoder autocomplete API works well for cities/states/addresses/etc., but I'd like for the results to include businesses as well (where a business result would come with a locationId). Is this going to be possible with the Here API? Using the Places segment of the API would be an option as well if there's a path forward along that route.
NO, Geocoder API helps to find only addresses based on housenumber, street, country ,county, pincode but it does not tell you if the address is of a business category.
You can try Places API and check if it works for your usecase. Read more at developer.here.com/documentation/places/topics/quick-start-find-text-string.html.
Below is an example of Hotel category(Business) in Sunny Vale, CA. You can get the id and location details here.
https://places.cit.api.here.com/places/v1/discover/explore?at=37.370831%2C-122.024636&cat=500-5000-0000&cs=pds&Accept-Language=en-US%2Cen%3Bq%3D0.5&app_id=xxxx&app_code=xxxx
I am new to Google Maps API and I have a requirement to integrate Google Maps API with an ASP.Net application. Is there a Google service where in I can input a UK postcode and radius as input parameters and get results only, without the map.
For example if I search for solicitors in a particular area like Z1 1XY (not real post code) with a radius of 5 mi, can I get the results of all solicitors with the postcodes 5 mile radius? Is there any service that would return the result set only? I know GeoCoding does something similar but can I provide radius as one of the input parameter and get results.
Any help would be appreciated. Thanks in advance.
Seaton
The Geocoding API may only be used in conjunction with a Google map; geocoding results without displaying them on a map is prohibited. For complete details on allowed usage, consult the Maps API Terms of Service License Restrictions.
Source: https://developers.google.com/maps/documentation/geocoding/#Limits
yes, you can use the Google Geocoding API to do address lookups (in this case postcodes). The response contains lat/lon co-ordinates which you can then subsequently use as the epicenter of your search to find items within a radius. Have a look at this blog post on how to use the DbGeography in .NET to perform radius queries based on lat/lon co-ordinates.
In Google Maps, I can type in 'Eiffel Tower' and it will present the correct location/Place. But using the Places Library with Maps API, it seems that you must always provide a nearby location when searching. You can't search for 'Eiffel Tower', it has to be 'Eiffel Tower' and you have to provide coordinates for 'Paris, France' as well. Is there any way to achieve an API experience closer to the regular Google Maps experience?
UPDATE:
If I search with the regular Maps API Geocoder, 'Eiffel Tower' does in fact return the correct address. But if I search Geocoder with 'Madison Square Garden', I receive completely unrelated locations. This is despite the fact that the Google Maps website does immediately identify 'Madison Square Garden' correctly.
Summary: It seems that the Places Library cannot search Places without a nearby Location provided. Additionally, Geocoder can sometimes search for famous places but not other times. Results do not seem to correspond to the Google Maps website results.
When you search in Google Maps, you ARE providing a "nearby" location. It uses the center/bounds of the current map view. Searching for a place without context wouldn't be very helpful.
I want to automate the google map geocoding whenever a fusion table is updated. Or any other webservice to call geocode programatically.
For Ref : please check this image
http://imageshack.us/photo/my-images/829/7232012113102pm.png/
this is what i exactly need programatically.
Any suggestions?
This is not yet possible. There is a pending feature request, feel free to star it, which shows that you also would like this feature.
Until then you could geocode your data prior to inserting it to Google Fusion Tables. There are several services you could use (Google Geocoding API, Yahoo PlaceFinder, MapQuest Geocoding API). Once you got the lat/lng data belonging to your data, you could simply insert it in your Fusion Table.
I am looking for some example to use google map for using in ASP MS Access. I need it for address listing , so map will get data from database.
Building no,
Street no.,
City,
Code,
Country
You can store address in your database as actual address string. Like
1600 Amphitheatre Parkway, Mountain View, CA
And when generating Google Map for it on a webpage - use Geocoding. Also you can store latitude and longtitude (maybe also as strings) for some addresses that will not be found (or found incorrectly / not precisely) through Geocoding.
PS. I am not an ASP dev. I work with mere PHP+MySQL, but thats how I used to store addresses for Google Maps on one tourist website project.