mirror of
https://github.com/osm-search/Nominatim.git
synced 2026-02-16 15:47:58 +00:00
add tests for nearpoint sql functions
This commit is contained in:
@@ -34,13 +34,7 @@ class NearPoint
|
||||
|
||||
public function withinSQL($sObj)
|
||||
{
|
||||
return sprintf(
|
||||
'ST_DWithin(%S, ST_SetSRID(ST_Point(%F,%F),4326), %F)',
|
||||
$sObj,
|
||||
$this->fLon,
|
||||
$this->fLat,
|
||||
$this->fRadius
|
||||
);
|
||||
return sprintf('ST_DWithin(%s, %s, %F)', $sObj, $this->sSQL, $this->fRadius);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user