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