mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-14 18:37:58 +00:00
fix syntax of route linestring
This commit is contained in:
@@ -417,11 +417,12 @@
|
||||
if ($this->aRoutePoints)
|
||||
{
|
||||
$sViewboxCentreSQL = "ST_SetSRID('LINESTRING(";
|
||||
$bFirst = false;
|
||||
foreach($this->aRouteaPoints as $aPoint)
|
||||
$bFirst = true;
|
||||
foreach($this->aRoutePoints as $aPoint)
|
||||
{
|
||||
if (!$bFirst) $sViewboxCentreSQL .= ",";
|
||||
$sViewboxCentreSQL .= $aPoint[1].' '.$aPoint[0];
|
||||
$bFirst = false;
|
||||
}
|
||||
$sViewboxCentreSQL .= ")'::geometry,4326)";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user