Skip Navigation

[Resolved] What information do I need to use and put into a map field?

This support ticket is created 3 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Our next available supporter will start replying to tickets in about 0.79 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9:00 – 13:00
14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 - - 14:00 – 18:00

Supporter timezone: Africa/Casablanca (GMT+01:00)

This topic contains 6 replies, has 2 voices.

Last updated by simonV-3 3 years, 9 months ago.

Assisted by: Jamal.

Author
Posts
#1949297

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

#1949859

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.

#1950559

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

#1951073

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?

#1951099

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

#1951163

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.

#1956317

My issue is resolved now. Thank you!