what do they mean in gmap url? thank you very much!

?spn=4.314384,10.239258&
?z=7&iwloc=addr&
?output=embed&
?s=AARTsJq6uF7Taj20NPUtaLNp346LE2Qjpw'

<iframe width='300' height='200' frameborder='0' scrolling='no' marginheight='0' marginwidth='0' src='http://maps.google.com/maps?f=q&amp;hl=zh-CN&amp;geocode=&amp;q=$city,$country&amp;ie=UTF8&amp;ll=$a[2],$a[3]&amp;spn=4.314384,10.239258&amp;z=7&amp;iwloc=addr&amp;output=embed&amp;s=AARTsJq6uF7Taj20NPUtaLNp346LE2Qjpw'></iframe><br /><small><a href='http://maps.google.com/maps?f=q&amp;hl=zh-CN&amp;geocode=&amp;q=$city,$country&amp;ie=UTF8&amp;z=7&amp;iwloc=addr&amp;ll=$a[2],$a[3]&amp;source=embed' style='color:#0000FF;text-align:left'>View Larger Map</a></small>

Comments

WholeMap’s picture

Take a look at http://mapki.com/wiki/Google_Map_Parameters for a reasonable summary of parameters.

I can't say just how accurate they are, but they should answer some of your questions:

  • spn= Approximate lat/long span. The zoom level will be adjusted to fit if there's no z= parameter. (I've never used this one, I just use z, below.)
  • z= Sets the zoom level. Google Maps sets zoom level 0 to encompass the entire earth. Each succeeding zoom level doubles the precision in both horizontal and vertical dimensions.
  • iwloc= Specifies where the infowindow will be displayed.

For even more details, check out the code.Google page, at http://code.google.com/apis/maps/documentation/staticmaps/