L
L
Lord_Dantes2019-07-12 10:36:53
Google Maps
Lord_Dantes, 2019-07-12 10:36:53

How to generate a correct request in google maps dynamically for the specified map output?

There is a custom field that contains the address specified by the user.
It is necessary to immediately display a section of the map at the specified address on the page of the same post.
I thought that I could somehow make a combo from google, com, ua/maps/place/ + custom_field and insert it into an iframe/
But there is a different link format, I already understood that. Can I somehow insert the address in a different way and so that the map is immediately formed? Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lord_Dantes, 2019-07-12
@Lord_Dantes

Found the code. It was under my nose, but I'm blind :)

<iframe width="100%" height="300" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?q= сюда ваши данные &amp;hl=es;z=14&amp;output=embed"></iframe>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question