Remove or change google maps address in google search result snippet - google-maps

On one of my sites I have a google maps pin, address and phone number included in my search result snippet. The problem is that it's the correct address but the phone number is wrong and I can't understand where this come from and how to change it or remove the maps snippet from the result. What I have read is that Google can use information from all over the web to produce a great snippet for my site but in my case it's not so great. Is it possible to change it in any way?

The correct answer to this question is that you can modify this information by changing the Google places information or suggest the change to Google.

Related

Google Maps Autocomplete - street number disappears

I am using the Google Maps API autocomplete. When I type in an address, I get suggestions. Valid results are bold, but invalid results are not. So, I might get an item in the drop down where the street name is bold, but the number is not:
So, if the users chooses 829 Wakely Terrace, I call getPlace and populate my address fields. But since its not a valid number, it looks like the number get stripped out. This is a confusing experience.
Can I force autocomplete to not do this?
Concersely, do I need some kind of "Did you mean this address?" functionality? Can anyone point me to an example of where this is handled well (Not for code, but UX purposes)?
I have a sort of answer. We were using the autocomplete widget from Google. Is till find it weird the whole bold/not bold thing, but if you use the AutocompleteService, you get the raw suggestions as JSON from Google. So, you need to do some more work to make the front end work, but you have a lot more control and con handle the situation as you see fit.

Link to an address on Here Maps?

Is it possible to link to a specific address on https://wego.here.com as you can with Google maps like this: https://www.google.com/maps?q=221b+Baker+Street%2C+London ?
You can do the same by using Places and locating your place and getting the shortened here link to it. Please see the image attached. You can also add locations to your collection and later get the links to them.
Edit (from comment):
You can do it programmatically by appending your search term like this
https://wego.here.com/search/221b-Baker-Street%2C-London

How to Remove/Update "Address Is Approximate" From addressControl

Thanks to Dr.Molle cooments on my previous post, now, I know that we can filter displaying the addressControl. But what if I want to ONLY remove or update a part of the box.For example I want to keep the address line but remove the "Address Is Approximate" message since I am sure that I am in 100% correct address.Can you lease help me to figure this one out too?
Thanks
Don't try to modify the existing text. Add your own div or custom control containing only the address.
Update to address additional questions in comment:
Do I have to hard code the address in new custom div?
No.
Is there a way to grab address from addresscontrol?
I wouldn't think so. Where do you get the position of the panorama from? If it is an address, use that. If it is a position, you can get an approximate address by reverse geocoding the position (which is what I suspect Google is doing and why it says "address is approximate") Please post a complete example of your code (or at least enough of it to reproduce the behavior you are trying to change) if you want help with it.
Can you please help me to find a sample/ example of adding custom div containing address
on the top of map?
See the documentation on Custom Controls
I was having the same issue as you. The 'address control' on my embedded street view map was not appearing the same as it was in the Google Docs demo. In their demo the 'address control' had the address, a pin icon, and a 'View on Google Maps' link.
On my embedded map, the 'address control' only had the address and text below reading 'Address is Approximate'. At first I thought it was my lat/lng causing the issue but I tested my embed using the same values in the Google Docs demo and still had the issue.
What ended up fixing this issue for me was adding the signed_in=true parameter to my Google API script like so:
<script src="https://maps.googleapis.com/maps/api/js?signed_in=true&callback=initGoogleMaps" async defer></script>
Hopefully this will fix the issue for you!

Wordpress custom post type and Google maps API

I have programmed custom post type inside Wordpress and I am using it for submission of properties inside system.
I would like to add google maps functionality where based on adress that someone enters, he automatically gets a place on the map, all on google maps.
Is that possible? How to render correct place on google maps based on html form inut? Im just loking for an idea on this, if someone can give me a hint I would be thankful.
you most likely need to implement a small plugin that defines a google map shortcode, with the field with location as a parameter.
The reason is that you need to include libraries etc that are not needed for all other pages, and the ability to put the map wherever you need it within said post.

google.maps.places.Autocomplete does not return some correct establishment addresses

The Google places (google.maps.places.Autocomplete) class that is available to use by linking an input box into a drop down list to display addresses from is causing me trouble when searching for establishments
I can generate this issue on the Google example page as well at:
google places example
I use this feature in my code much like the example above by including a reference to the places API:
<script src="//maps.googleapis.com/maps/api/js?sensor=false&libraries=places"
type="text/javascript"></script>
The problem seems to be mainly around [Establishments]. But not just any establishments. It only occurs on some now and again.
The one I have particular issue with at the moment is when I type in the Name United campervan rentals, and select the resulting drop-down. The address that is returned in the autocomplete.getPlace() command is not address I would expect. The address returned is the middle of the bounds set when creating the autocomplete object.
However as per maps.google.co.nz, I an expecting an address of 3 Kingsford Smith Place.
I've tried it in a number of browsers including IE 8, 9, Chrome, FF 3.6. All produce the same result. I've also tried at different times of the day and the same result.
I had posted this on the Google API forum but read an article that they are moving their Q&A to SO, so as long as I add the appropriate tags someone may be able to offer some sort of insight. I'm really hoping this is the case. Cheers.
For anyone who reads this I logged an issue on the gmaps API issue site and after a few days the issue was cleared as fixed. This also resolved the question.