The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
Google Maps Field and Coordinates - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Modules / Other (https://forums.formtools.org/forumdisplay.php?fid=8) +--- Forum: Modules (https://forums.formtools.org/forumdisplay.php?fid=16) +--- Thread: Google Maps Field and Coordinates (/showthread.php?tid=1493) |
Google Maps Field and Coordinates - Hannes - Jul 31st, 2011 Hei, is there a simple way to get "Google Maps Field" module to work with coordinates (Latitude/Longitude)? I have an existing databases which does provide the acurate coordinates but not a street adress. Best regards, Hannes RE: Google Maps Field and Coordinates - Ben - Jul 31st, 2011 Good question. Yes you can, but you need to be a little sneaky. The Google Maps field type stores all information in the database field in the following format: Code: street address here|longitude, latitude|zoom level So if you have only lats & lngs, I'd import the data into the fields in this format: Code: |longitude, latitude|4 - simply omit the address - "4" is an arbitrary zoom level. I think Google Maps offer something like 1-9 or something... I think that'll work! Ben |