Google Maps v3 geocoding w/ misspelled address - google-maps

Does the Google Maps API v3 provide a way to access alternate suggestions if the address has typos in it? For example, I am processing a file containing some misspelled street names and getting 0 results back in the JSON from Google for those addresses. If I manually search for that address, Google Maps presents me with alternate suggested addresses. Is there a way to access those with the API in the geocoding response?
Thanks in advance,
Chris

Related

Google Maps Ski Trail Names

I'm wonder if I can get Ski Trail Name from Google Map api.
For example, I picked a location on google map that displays as ski trail "The Main Street" on Google Map.
https://www.google.com/maps/place/39%C2%B015'31.7%22N+120%C2%B007'42.5%22W/#39.258805,-120.128457,17z/data=!3m1!4b1!4m2!3m1!1s0x0:0x0
Then I try using google geocode api to get the name of that location.
https://maps.googleapis.com/maps/api/geocode/json?latlng=39.274178,-120.119568&key=API_KEY
I couldn't get the name of "The Main Street."
I'm thinking I should be querying on a different layer of google maps, but I don't know where to look. Any help is appreciated.
You have to use the Google Place API to get the name or the detailed information about a location on the Google Maps, For specific trails or routes on the Google maps you have to use the Direction API. You have to get the Server API Keys for both the API from Google Developers Console and then put that in the API request call.
Follow the instruction on this Google's official documentation for Places API & Follow the instruction on the Google's official documentation for Direction API set up.
Please have a look at this example for implementation in your app code.
Hope this would Help!!

Google Maps API incomplete address

Is there a way of submitting to Maps API the complete address of a place and retreiving it from the API?
I tried to POST to the Place API, but the address doesn't split in component. I have a valid canadian address "6825 Saint-Pierre O. Saint-Hyacinthe J2T 5G7", but the MAPS API returns only the "prefix" for the postal code. I need the complete postal code for shipping purpose.
Is there any way to do this?

Maps API keys for geocoding not working

I have read your answer on this.
Maps API keys for geocoding not working anymore?
Currently I am trying this:
https://maps.google.com/maps/api/geocode/json?address=n&sensor=true&key=apikeygoeshere
Giving me error:
This API project is not authorized to use this API.
Please suggest how can I complete my app. I am searching locations for my App.I can buy business plan later but for now I need to test for development.
I have following services on:
Google Maps Coordinate API, Google Maps Engine API, Google Maps Geolocation API, Google Maps JavaScript API v3, Google Maps SDK for iOS, Places API.
What you are referring to is not the Geolocation API. It is the Geocoding API. You need to enable the Geocoding API in your console. Please see the documentation.
Visit the APIs console at https://code.google.com/apis/console and log in with your Google Account.
Click the Services link from the left-hand menu in the APIs Console, then activate the Geocoding API service.
Hope this helps.
Try this URL,
You Don't have to enter API Key in URL
Just pass lat,lng in URL through a variable
http://maps.google.com/maps/api/geocode/json?latlng=-34.78,138.519&sensor=false
When you put your location (Capital Area Soccer League) in google map search, google plots the location in the map if it finds a correct geocodes but if it does not finds proper geocodes for the searched location then it shows suggestions of corrects locations in the dropdown. When you choose any of the locations from the dropdown - it has the correct lat long (geocodes) so it plots that in the map correctly.
So you should not use geocodes in the search rather open up a suggestions dropdown and when click on any of the suggested location then you have correct geocodes to plot in the map.

Google Map Address from latitude and longitude

I am using google map api i am fetching dynamically latitude and longitude from my database.
I want to show address for each position can any one tell me how can id that.
or can any anyone tell how this site is fetching address for each every position.
http://www.findlatitudeandlongitude.com/find-address-from-latitude-and-longitude.php#.UTpYG1c9nwk
Fetching the associated address from a coordinates is called Reverse Geocoding
The Google Maps API provides reverse geocoding in the javascript API and as a web service.
The Google Maps service is not intended for bulk use. Your best option is to store the address in your database along with the coordinates as Reverse Geocoding is not always reliable.
You can use google map api like below
http://maps.googleapis.com/maps/api/geocode/json?latlng=34.41448,-118.93753&sensor=true
Using this api,you can get address address from key
"formatted_address" : "1271 Cliff Avenue, Fillmore, CA 93015, USA"
Whole address you can get using this api.
Hope need helpful.
I'd guess that site is using the Reverse Geocoding API provided by Google.

Confused - How to get the geocode for an address (Google Maps)

I create a small web app, the user add his address and I want to show the map for his address.
Is there a way to get the latitude and longitude for an address? with Google Maps.
Or you could use the geocoding service from google maps: http://code.google.com/apis/maps/documentation/javascript/services.html#Geocoding
Here's a simple example for it: http://code.google.com/apis/maps/documentation/javascript/examples/geocoding-simple.html
Yes there is. It is called geocoding. Here is Google's API: http://code.google.com/apis/maps/documentation/geocoding/