Possible Duplicate:
One dimensional map of the world?

I am trying to create a google map. I am creating placemarkers using an external script in a kml file.

I'd like to sort the markers so that the ones which are geographically close are listed together. e.g., Los Angeles and San Francisco should appear next to each other, while New York and New Jersey will be close to each other.

Is there any way to sort this list? Should I be using the latitude/longitude?

Note: I am not asking how to visualize this on a map.

merged by whuber Dec 30 '12 at 14:32

This question was merged with One dimensional map of the world? because it is an exact duplicate of that question.

Browse other questions tagged or ask your own question.