Select to view content in your preferred language

big help needed to format coordinates with python script

406
0
11-03-2010 05:02 PM
EjayLai
Deactivated User
Anybody knows how to use python script to turn this "41.395355, 140.196533", "41.422134, 140.152588", "41.428313, 140.133362" to:

new LatLng(41.395355, 140.196533), new LatLng(41.422134, 140.152588), new LatLng(41.428313, 140.133362)

I extracted tons of coordinates like these from a KML file and hope to put these to an array and then I can code color to individual polygons. It will be way to much to do it manualy.

Your help will be much appreciated.
Tags (2)
0 Kudos
0 Replies