Tell us what you are trying to do? The main goal is, to have and get a link where customers can click on and it opens Google maps with the correct location.
I have a field named Google Map and the type address. When add a post (location in) I used the "Plus Code" CRXJ+R9 Khon Kaen, Mueang Khon Kaen District, Khon Kaen - where it gets the correct location in the map close to the field in the backend.
Now I like to have a text link where it should open Google maps, but with this Plus Code it is not working as expected. It might be okay to have a marker set correct, but not to open Google maps.
What should I use for information instead of this Plus Code?
Is there any documentation that you are following? I found this: https://toolset.com/forums/topic/view-larger-map/
Is there a similar example that we can see? hidden link
What is the link to your site? hidden link
Hello and thank you for contacting the Toolset support.
I don't think there is a solution to this case, because Google Maps considers the (+) symbol as reserved. Check this article hidden link
It uses it to replace ( ) space symbol. So, there is nothing yet Toolset can do.
I suggest that you ask the Google Maps Support team for a suggestion, and we'll be happy to help you implement it.
As a workaround, you may need to build a custom validation code that will prevent your users from entering an address that contains a (+) plus symbol.
Dear Jamal
So You are telling me, that there is not such "function" or examples I can follow from Toolset itself?
I mean, I can get all the times the share url from google itself, like hidden link - this will open the maps app or in browser directly.
But would be nice, if it does more dynamic.
Regards,
Simon
Hello Simon,
What I am saying is that it is probably impossible to keep the plus sign in the Google App. Check this screenshot hidden link
Google Apps will threat the + sign symbol as a space symbol.
Let's take your first example "CRXJ+R9 Khon Kaen, Mueang Khon Kaen District, Khon Kaen" and let's start by a naive link:
hidden link Khon Kaen, Mueang Khon Kaen District, Khon Kaen">"hidden link Khon Kaen, Mueang Khon Kaen District, Khon Kaen"
Google Maps will replace the + by a space. Check this screenshot hidden link
Does it make sense?
In my previous reply, I suggested to reach to Google Maps support and ask how to preserve the + sign, if they can tell how we'll do our best to help you make it dynamic with Toolset. Sounds good?
Dear Jamal
I did checked a bit with Google Maps API and creating url's.
I created now an additional url field (map url), where I add the shared link from Google maps:
hidden link
This I include in different way with toolset short codes. And it works as needed.
Regards,
Simon
That's awesome Simon. I am glad you found a solution.
Is there anything else we can do to help?
If not, please mark this ticket as resolved, and open a new chat or ticket for any other question/issue.
My issue is resolved now. Thank you!