mapbox/geojson.io — pull request #322 by benelsen (2014-03-18 08:01:24+00:00)
Title: Fix coordinate order for distance calculation in popup

Currently the distance/length of a line is wrong in the popup.

Example: The popup of a LineString from New York to San Francisco shows “5379378.45 m” while it’s about 4148 km in reality.

The order of the coordinates passed to L.latLng were in the wrong order (GeoJSON coordinates in the pair are [lon, lat, …], L.latLng expects [lat, lon])