Get the street names with Google API - google-api

Is there a way to get all the street names in an area with a Google API? Im trying to get all the street names from Sherwood Forest, Jacksonville, Florida.

As far as I know this is not possible with the Google API. You could search within a 50 mile radius for places ( using the places api ) and then parse each places address for streets and exclude duplicates.
If you do not need to use google maps then I would suggest looking at this.
http://www.openstreetmap.org/#map=2/71.3/-96.8

Related

Exact address of a place given its latitude and longitude

I'm developing a web app wherein I need to get the "exact" address given a latitude and longitude pair. I tried Maps Geocode API as well but it doesn't give the exact address. I think Places API would be a good option alas I don't get how to use it.
I'm using golang.
IMO, if you think that reverse geocoding results a bad, Places API results wouldn't make you happier.
Here is the sample of Places API
https://maps.googleapis.com/maps/api/place/search/xml?location=55.753720,37.620144&key=google_map_api_key
And Geocoder to compare
https://maps.googleapis.com/maps/api/geocode/xml?latlng=55.753720,37.620144
As you can see, there is no address in Places API results. The first addresses you may get only after addition radius parameter:
https://maps.googleapis.com/maps/api/place/search/xml?location=55.753720,37.620144&radius=100&key=google_map_api_key
For me, trying to decide which address within 100 meters is right is more complex task than simple use of the best possible result from geocoding.

Google Places Auto Complete - Restrict to Major Cities

I am trying to find out if I can restrict Google Places auto complete to include only Large/Major US Cities and not smaller cities/towns.
For example, we would not allow the user to enter "Montogomery, TX" but instead the user can choose the closest large city "Houston, TX".
"Montgomery, TX" should not appear in the auto complete list but "Houston, TX" should.
Thanks,
Shardul
I discovered that Google Places API does not support the feature I am looking for. We had to work out an alternative based on the Google API.

Multiple names in Google Places

Basically, my problem is the same as here: Google Places API: Searching for names containing spaces
If you use %20, it works for the one name containing it, but ignores the rest.
I have a need to find restaurants near by, but only restaurants I've got additional information on, so I've got a list of 10 restaurants, I want to show the closest restaurants of the 10, it appears as though google places may not support this (spaces in names of restaurants), is there another API I should be looking at?
Are you storing these restaurants in your own database?
If you are, you need to do proximity search. MySql & Postgres has GIS plugins that support this given a lat/long.
Performing a Places Search Request with multiple keywords or names is not officially supported by the Places API therefore is not guaranteed to return accurate results.
Google Places API: Searching for names containing spaces

Finding nearest street given a lat-long location

Is there any such API where given a location (in terms of latlong), I could find whether the given point is on road/street or not. And if possible also gives me nearest street/road to that location. I found API from [Find nearby Streets] -> http://www.geonames.org/maps/us-reverse-geocoder.html#findNearbyStreets , but it just gives solution for US.
Help me if u know of any better solution/algorithm. ( I am particularly interested in India.)
You can use the Google Maps Geocoding API which does exactly that: https://developers.google.com/maps/documentation/geocoding/intro
Take a look at the "Reverse Geocoding" section.
Google maps api provides reverse Geocoding api, you need to pass lat and long values to get address
http://maps.googleapis.com/maps/api/geocode/json?latlng=40.714224,-73.961452&sensor=true_or_false
Check this
http://code.google.com/apis/maps/documentation/geocoding/#JSON
Much simpler with OSRM (nearest) webservice. Look at my answer here:
https://stackoverflow.com/a/30403046/4640499

Restricting BING Map searches to a country in Windows Phone 7

The question title pretty much sums it up. I want to restrict the map search to USA only. Right now I'm only using the BING Maps geocode service, so I guess there should be a way in there to do this. For example, if I search Paris, I only want to get 'Paris, TX' and not 'Paris, France'.
Thanks!
Have you tried just appending ", USA" to the query?
Without knowing how you're capturing/sourcing the values you're searching for it's hard to offer a more specific solution.

Resources