craftsmancoding / gmarker

Plugin and Snippets for MODX Revo (modx.com). Allows easy creation of maps and markers using Google Maps API.
6 stars 2 forks source link

Get latitude and longitude from DMS (degrees, minutes, secondes) string #26

Open timdhoffmann opened 8 years ago

timdhoffmann commented 8 years ago

I tried to use the plugin with a gmarker.formatting_string setting of [[+latitudeDms]] [[+longitudeDms]], two TVs containing latidude and longitude respectively in the DMS format "degree° minutes' seconds" N/S/W/E", but the plugin returns 0 for both, my gmarker.lat_tvand gmarker.lng_tv TVs.

It works when entering such a format directly on maps.google.com eg. 40° 17.6’ N 008° 52.2’ W returns: https://www.google.de/maps/place/40°17'36.0%22N+8°52'12.0%22W/@40.2101542,-8.9579693,10.76z/data=!4m2!3m1!1s0x0:0x0

MODX error log shows nothing suspicious. Can anybody help me with fixing that, please?

fireproofsocks commented 8 years ago

If you can specify exactly how to reproduce the error, I can look at it next time I have a gig that requires the use of this extra.