diff --git a/lib/OSM/Api.php b/lib/OSM/Api.php index 3229594..e7559ee 100644 --- a/lib/OSM/Api.php +++ b/lib/OSM/Api.php @@ -1097,7 +1097,7 @@ public function &getWayNodesCoordinates( OSM_Objects_Way $way ) for( $i=0; $i<$n; $i++ ) { $node = $this->getNode( $nodesRef[$i] ); - $coords[] = array( $node->getLat(), $node->getLon() ); + $coords[] = array( $node->getLon(), $node->getLat() ); } return $coords ; }