Open google map taking the address from PHP variable

637

I have an address stored in a php variable (say$add). I am trying to create a link in myWeb App, which when clicked will open theGoogle Maps App in theiPhone with the$add marked. I don't want to embed the map in the web app.

Can anyone give a few pointers how to go about it?

687

Answer

Solution:

Just link tohttp://maps.google.com/maps?q=<?=$add?> this should open the maps app on iPhone by default (and android incidentally)

589

Answer

Solution:

You can send the data over url parameters:

Check info here:

Google Map Parameters

People are also looking for solutions to the problem: PHP nested foreach

Source

Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.