google-maps

Get google map link with latitude/longitude


I want to get google map link that show title/content in marker that located at latitude/longitude.

so parameters are title, content, latitude , longitude . Result is a link like this https://maps.google.com/?ie=UTF8&ll=xxx,xxx&title=xxx&content=xxx

I searched google and don't find answer, event in google API.


Solution

  • I've tried doing the request you need using an iframe to show the result for latitude, longitude, and zoom needed:

    <iframe 
      width="300" 
      height="170" 
      frameborder="0" 
      scrolling="no" 
      marginheight="0" 
      marginwidth="0" 
      src="https://maps.google.com/maps?q='+YOUR_LAT+','+YOUR_LON+'&hl=es&z=14&amp;output=embed"
     >
     </iframe>
     <br />
     <small>
       <a 
        href="https://maps.google.com/maps?q='+data.lat+','+data.lon+'&hl=es;z=14&amp;output=embed" 
        style="color:#0000FF;text-align:left" 
        target="_blank"
       >
         See map bigger
       </a>
     </small>