Skip to content

Commit

Permalink
fixed method getWayNodesCoordinates()
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyrille37 committed May 24, 2013
1 parent 3216d84 commit 5892831
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/OSM/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ;
}
Expand Down

0 comments on commit 5892831

Please sign in to comment.