Answer the question
In order to leave comments, you need to log in
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
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= сюда ваши данные &hl=es;z=14&output=embed"></iframe>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question