Google autocomplete place API not suggesting few popular places - google-maps

I am using https://maps.googleapis.com/maps/api/place/autocompete?key=MyKey&input=MySearchText api for auto place suggestion , but I am not getting few popular cities in response and the same place I can easily search on google map application. Can anyone please help me on this what I am doing wrong and what can be the reason google place api is not suggesting this location? I am searching for below location :
4 horner square london e1 6ew
Thanks,

When I search the '4 horner square london e1 6ew' with Geocoding API I can get this address.
https://maps.googleapis.com/maps/api/geocode/json?address=4%20horner%20square%20london%20e1%206ew&key=YOUR_API_KEY
The place ID is ChIJs2foBLQcdkgRHljoVNXS89g
The fact that this place doesn't appear in Place autocomplete is really weird. I also have ZERO_RESULTS:
https://maps.googleapis.com/maps/api/place/autocomplete/json?input=4%20horner%20square%20london%20e1%206ew&key=YOUR_API_KEY
I think you have to file an issue in the public issue tracker.

Related

Auto suggestion in Google Maps is not same at web and API

I get the program with the clumsiness of data appearance on the google API,
because if we do a direct address search on maps.google.com then the suggestion data will appear more, on the contrary if using the display API suggestion less, well how to display the suggestion API can be in accordance with the results suggestion search on maps.google.com
for the demo here: http://dzkrrbb.com/demo/gojek/
120/5000
enter the place name in the address like my example "masjid al ihsan", then compare the result on maps.google.com
I think that you are using Geocoding API instead of Place Autocomplete.
If you type "masjid al ihsan" in this link, you get the same results that Google Maps.

Mapbox or Google Maps. Is this possible?

I have a custom map from a client. They want to either use Mapbox or google maps to add markers to it. The problem is they've customized how the world map actually looks. It doesn't show on the map image attached, but they cut off Alaska, and want to show it directly under Texas as a floating state. They also want to show so other states in an odd order. To the right of Alaska they want Hawaii, Puerto Rico, US Virgin Islands.
Two issues here:
1) Can this be done? I can't find any information about cutting pieces of a map up by moving states around.
2) If I CAN do this, will the geocoding still work for the map? Cause now Alaska is way the heck down there.
As far as I know, yes to both of your issues.
Now, to answer your issues:
1) Can this be done? I can't find any information about cutting pieces of a map up by moving states around.
As discussed in Translate your project from Google to Mapbox, you have options to customize maps and features. Then, any customized project created in the Mapbox Editor or uploaded from Mapbox Studio Classic will have a Map ID. Use the Map ID when initializing the map to add it as the active layer.
2) If I CAN do this, will the geocoding still work for the map? Cause now Alaska is way the heck down there.
Yes, geocoding will still work. With Mapbox, L.mapbox.geocoder() will gladly geocode your addresses.
Please try going through the given documentation for more information and for sample codes. Hope that helps!

Google Maps Embed displaying incorrect address on directions

I have just added a very simple code snippet to a client's website using the Google Maps Embed API. This displays all of the correct details, but when you click on the "Directions" link, a different address is displayed. You can see the problem on the web page here, http://www.picturesbyrob.co.uk/contact-us/
Anyone seen a problem like this before? I'm not sure if there's an underlying issue with the data or with the application.
Any pointers gratefully received. Thanks.
It is because the coordinates that are passed in your direction request are https://maps.google.com/maps?ll=54.033922,-0.589114&z=7&t=m&hl=en-US&gl=US&mapclient=embed&daddr=Photographer%20in%20York%20118%20Middlecroft%20Drive%20Strensall%20York%2C%20North%20Yorkshire%20YO32%205YQ%2C%20United%20Kingdom#54.033922,-1.045047
Latitude : 54.033922
Longitude : -1.045047
Which is the address you are getting on the Google Maps when you click on the direction link.
THe coordinates for the address you are looking which is 118 Middlecroft Drive, Strensall, York, York YO32 5YQ, UK are
Latitude : 54.0338228
Longitude : -1.0447040000000243
Try putting this explicitly in your request instead of geocoding it!

Remove Google Map Marker Text

I have a client who has embedded Google Maps showing the location of a new hospital they are building. Until recently it just showed the pin marker, however now it is showing the longitude and latitude next to the pin. I have tried everything to remove this text but none of the options in the query string appear to do anything.
I think Google has updated the embed code but I can't find any documentation about it though. Does anyone have any suggestions?
Thanks
John
From the research I did, it seems like the new Google maps is pretty rigid and there isn't really a simple way. I think it would require some more complex API stuff.
This is the post that I found that described the limitations Removing the info window from an embedded map in the new Google Maps
Sorry I realize that doesn't really help.

Google Maps vs Mapquest

I figure I'd drop this question here.
I wrote a curl script that gets the longitude and latitude for an address using the google maps API.
Works great!
The problem I have is that when I check the coordinates that my script generated.... on Google Maps and Mapquest the maps show different locations on the same coordinates.
In this case the coordinates are : 41.461754, -74.443577
Give it a shot. You'll see what I mean.
has anyone else experienced this problem? any solutions?
I don't rely on mapquest. They have my home 1 block from it's correct location. They show my home in what is a vacant house 1 street west. Need contact info so can advise them of their error.
I compaired it with openstreetview the result is the same as in google maps. It seems that just mapquest does not know the streets near to your position. If you scroll out the streets seems to be the same, but I live on another continent so far I don't know that environment.