I have lat/long coordinates for a list of ports. The coordinates are in a 2856N 05211E format (totally made those numbers up, btw). I'm trying to figure out how I can convert them to the degree format the Google Earth pluginuses in order to plot them on a map. Is there a parameter in the API that I could use to convert this? Any ideas would be appreciated.
相关问题
- XML - XSLT - document() function inside count() fu
- lon,lat to timezone
- Using XSLT to select after EACH instance in a stri
- XSLT open other xml files
- How to use MSbuild property in TransformXml task?
相关文章
- xslt localization
- convert xml to soap request using xslt transformat
- Get Coordinates for given Location
- XALAN register Extension Function like in SAXON
- How to get the latitude and longitude from city na
- How to group using XSLT
- How to reformat XML with group-adjacent (XSLT)
- AddExtensionObject - Performance
I'm assuming you can parse the values yourself. If not, then provide the language you wish to use.
The conversion is simple, Degrees/Min/Sec(DMS) to Decimal Degrees is
If S or W,
As always, do your own error checking.
-90 <= lat <= 90
-180 <= lon <= 180