From 58928318b80fe913aee1234608956c8593a3f4aa Mon Sep 17 00:00:00 2001 From: Cyrille37 Date: Sat, 25 May 2013 00:47:16 +0200 Subject: [PATCH] fixed method getWayNodesCoordinates() --- lib/OSM/Api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ; }