$this->oPlaceLookup->loadParamArray($oParams, $sForceGeometryType);
$this->oPlaceLookup->setIncludeAddressDetails(false);
$this->oPlaceLookup->setIncludePolygonAsPoints($oParams->getBool('polygon'));
+
+ if ($oParams->getString('format', '') == 'geocodejson') {
+ $this->oPlaceLookup->setAddressDetails(true);
+ $this->oPlaceLookup->setAddressAdminLevels(true);
+ }
}
public function setQueryFromParams($oParams)
protected $aLangPrefOrderSql = "''";
protected $bAddressDetails = false;
+ protected $bAddressAdminLevels = false;
protected $bExtraTags = false;
protected $bNameDetails = false;
$this->bIncludePolygonAsPoints = $b;
}
+ public function setAddressDetails($b = true)
+ {
+ $this->bAddressDetails = $b;
+ }
+
+ public function setAddressAdminLevels($b = true)
+ {
+ $this->bAddressAdminLevels = $b;
+ }
+
public function loadParamArray($oParams, $sGeomType = null)
{
$aLangs = $oParams->getPreferredLanguages();
$this->bDeDupe = $oParams->getBool('dedupe', $this->bDeDupe);
- if ($sGeomType === null || $sGeomType == 'text') {
- $this->bIncludePolygonAsText = $oParams->getBool('polygon_text');
- }
if ($sGeomType === null || $sGeomType == 'geojson') {
$this->bIncludePolygonAsGeoJSON = $oParams->getBool('polygon_geojson');
+ $this->bIncludePolygonAsPoints = false;
}
- if ($sGeomType === null || $sGeomType == 'kml') {
- $this->bIncludePolygonAsKML = $oParams->getBool('polygon_kml');
- }
- if ($sGeomType === null || $sGeomType == 'svg') {
- $this->bIncludePolygonAsSVG = $oParams->getBool('polygon_svg');
+
+ if ($oParams->getString('format', '') !== 'geojson') {
+ if ($sGeomType === null || $sGeomType == 'text') {
+ $this->bIncludePolygonAsText = $oParams->getBool('polygon_text');
+ }
+ if ($sGeomType === null || $sGeomType == 'kml') {
+ $this->bIncludePolygonAsKML = $oParams->getBool('polygon_kml');
+ }
+ if ($sGeomType === null || $sGeomType == 'svg') {
+ $this->bIncludePolygonAsSVG = $oParams->getBool('polygon_svg');
+ }
}
$this->fPolygonSimplificationThreshold
= $oParams->getFloat('polygon_threshold', 0.0);
);
}
+ if ($this->bAddressAdminLevels) {
+ $aPlace['aAddressAdminLevels'] = $this->getAddressAdminLevels(
+ $aPlace['place_id'],
+ $aPlace['housenumber']
+ );
+ }
+
if ($this->bExtraTags) {
if ($aPlace['extra']) {
$aPlace['sExtraTags'] = json_decode($aPlace['extra']);
return $aAddress;
}
+ /* "Downing Street, London"
+ * [
+ * "level15" => "Covent Garden",
+ * "level8" => "Westminster",
+ * "level6" => "London",
+ * "level5" => "Greater London",
+ * "level4" => "England",
+ * "level2" => "United Kingdom"
+ * ]
+ */
+
+ public function getAddressAdminLevels($iPlaceID, $sHousenumber = null)
+ {
+ $aAddressLines = $this->getAddressDetails(
+ $iPlaceID,
+ false,
+ $sHousenumber === null ? -1 : $sHousenumber
+ );
+
+ $aAddress = array();
+ foreach ($aAddressLines as $aLine) {
+ if (isset($aLine['admin_level'])) {
+ $aAddress['level'.$aLine['admin_level']] = $aLine['localname'];
+ }
+ }
+ return $aAddress;
+ }
/* returns an array which will contain the keys
--- /dev/null
+<?php
+
+// https://github.com/geocoders/geocodejson-spec/
+
+$aFilteredPlaces = array();
+
+if (empty($aPlace)) {
+ if (isset($sError))
+ $aFilteredPlaces['error'] = $sError;
+ else $aFilteredPlaces['error'] = 'Unable to geocode';
+ javascript_renderData($aFilteredPlaces);
+} else {
+ $aFilteredPlaces = array(
+ 'type' => 'Feature',
+ 'properties' => array(
+ 'geocoding' => array()
+ )
+ );
+
+ if (isset($aPlace['place_id'])) $aFilteredPlaces['properties']['geocoding']['place_id'] = $aPlace['place_id'];
+ $sOSMType = formatOSMType($aPlace['osm_type']);
+ if ($sOSMType) {
+ $aFilteredPlaces['properties']['geocoding']['osm_type'] = $sOSMType;
+ $aFilteredPlaces['properties']['geocoding']['osm_id'] = $aPlace['osm_id'];
+ }
+
+ $aFilteredPlaces['properties']['geocoding']['type'] = $aPlace['type'];
+
+ $aFilteredPlaces['properties']['geocoding']['accuracy'] = (int) $fDistance;
+
+ $aFilteredPlaces['properties']['geocoding']['label'] = $aPlace['langaddress'];
+
+ $aFilteredPlaces['properties']['geocoding']['name'] = $aPlace['placename'];
+
+ $aFieldMappings = array(
+ 'house_number' => 'housenumber',
+ 'road' => 'street',
+ 'locality' => 'locality',
+ 'postcode' => 'postcode',
+ 'city' => 'city',
+ 'district' => 'district',
+ 'county' => 'county',
+ 'state' => 'state',
+ 'country' => 'country'
+ );
+
+ foreach ($aFieldMappings as $sFrom => $sTo) {
+ if (isset($aPlace['aAddress'][$sFrom])) {
+ $aFilteredPlaces['properties']['geocoding'][$sTo] = $aPlace['aAddress'][$sFrom];
+ }
+ }
+
+ $aFilteredPlaces['properties']['geocoding']['admin'] = $aPlace['aAddressAdminLevels'];
+
+ if (isset($aPlace['asgeojson'])) {
+ $aFilteredPlaces['geometry'] = json_decode($aPlace['asgeojson']);
+ } else {
+ $aFilteredPlaces['geometry'] = array(
+ 'type' => 'Point',
+ 'coordinates' => array(
+ (float) $aPlace['lon'],
+ (float) $aPlace['lat']
+ )
+ );
+ }
+
+ javascript_renderData(array(
+ 'type' => 'FeatureCollection',
+ 'geocoding' => array(
+ 'version' => '0.1.0',
+ 'attribution' => 'Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright',
+ 'licence' => 'ODbL',
+ 'query' => $sQuery
+ ),
+ 'features' => $aFilteredPlaces
+ ));
+}
--- /dev/null
+<?php
+
+$aFilteredPlaces = array();
+
+if (empty($aPlace)) {
+ if (isset($sError))
+ $aFilteredPlaces['error'] = $sError;
+ else $aFilteredPlaces['error'] = 'Unable to geocode';
+ javascript_renderData($aFilteredPlaces);
+} else {
+ $aFilteredPlaces = array(
+ 'type' => 'Feature',
+ 'properties' => array()
+ );
+
+ if (isset($aPlace['place_id'])) $aFilteredPlaces['properties']['place_id'] = $aPlace['place_id'];
+ $sOSMType = formatOSMType($aPlace['osm_type']);
+ if ($sOSMType) {
+ $aFilteredPlaces['properties']['osm_type'] = $sOSMType;
+ $aFilteredPlaces['properties']['osm_id'] = $aPlace['osm_id'];
+ }
+
+ $aFilteredPlaces['properties']['place_rank'] = $aPlace['rank_search'];
+
+ $aFilteredPlaces['properties']['category'] = $aPlace['class'];
+ $aFilteredPlaces['properties']['type'] = $aPlace['type'];
+
+ $aFilteredPlaces['properties']['importance'] = $aPlace['importance'];
+
+ $aFilteredPlaces['properties']['addresstype'] = strtolower($aPlace['addresstype']);
+
+ $aFilteredPlaces['properties']['name'] = $aPlace['placename'];
+
+ $aFilteredPlaces['properties']['display_name'] = $aPlace['langaddress'];
+
+ if (isset($aPlace['aAddress'])) $aFilteredPlaces['properties']['address'] = $aPlace['aAddress'];
+ if (isset($aPlace['sExtraTags'])) $aFilteredPlaces['properties']['extratags'] = $aPlace['sExtraTags'];
+ if (isset($aPlace['sNameDetails'])) $aFilteredPlaces['properties']['namedetails'] = $aPlace['sNameDetails'];
+
+ if (isset($aPlace['aBoundingBox'])) {
+ $aFilteredPlaces['bbox'] = array(
+ (float) $aPlace['aBoundingBox'][2], // minlon
+ (float) $aPlace['aBoundingBox'][0], // minlat
+ (float) $aPlace['aBoundingBox'][3], // maxlon
+ (float) $aPlace['aBoundingBox'][1] // maxlat
+ );
+ }
+
+ if (isset($aPlace['asgeojson'])) {
+ $aFilteredPlaces['geometry'] = json_decode($aPlace['asgeojson']);
+ } else {
+ $aFilteredPlaces['geometry'] = array(
+ 'type' => 'Point',
+ 'coordinates' => array(
+ (float) $aPlace['lon'],
+ (float) $aPlace['lat']
+ )
+ );
+ }
+
+
+ javascript_renderData(array(
+ 'type' => 'FeatureCollection',
+ 'licence' => 'Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright',
+ 'features' => array($aFilteredPlaces)
+ ));
+}
if (isset($aPlace['lat'])) $aFilteredPlaces['lat'] = $aPlace['lat'];
if (isset($aPlace['lon'])) $aFilteredPlaces['lon'] = $aPlace['lon'];
- if ($sOutputFormat == 'jsonv2') {
+ if ($sOutputFormat == 'jsonv2' || $sOutputFormat == 'geojson') {
$aFilteredPlaces['place_rank'] = $aPlace['rank_search'];
$aFilteredPlaces['category'] = $aPlace['class'];
--- /dev/null
+<?php
+
+$aFilteredPlaces = array();
+foreach ($aSearchResults as $iResNum => $aPointDetails) {
+ $aPlace = array(
+ 'type' => 'Feature',
+ 'properties' => array(
+ 'geocoding' => array()
+ )
+ );
+
+ if (isset($aPlace['place_id'])) $aPlace['properties']['geocoding']['place_id'] = $aPointDetails['place_id'];
+ $sOSMType = formatOSMType($aPlace['osm_type']);
+ if ($sOSMType) {
+ $aPlace['properties']['geocoding']['osm_type'] = $sOSMType;
+ $aPlace['properties']['geocoding']['osm_id'] = $aPointDetails['osm_id'];
+ }
+
+ $aPlace['properties']['geocoding']['type'] = $aPointDetails['type'];
+
+ $aPlace['properties']['geocoding']['label'] = $aPointDetails['langaddress'];
+
+ $aPlace['properties']['geocoding']['name'] = $aPointDetails['placename'];
+
+ $aFieldMappings = array(
+ 'house_number' => 'housenumber',
+ 'road' => 'street',
+ 'locality' => 'locality',
+ 'postcode' => 'postcode',
+ 'city' => 'city',
+ 'district' => 'district',
+ 'county' => 'county',
+ 'state' => 'state',
+ 'country' => 'country'
+ );
+
+ foreach ($aFieldMappings as $sFrom => $sTo) {
+ if (isset($aPointDetails['aAddress'][$sFrom])) {
+ $aPlace['properties']['geocoding'][$sTo] = $aPointDetails['aAddress'][$sFrom];
+ }
+ }
+
+ $aPlace['properties']['geocoding']['admin'] = $aPointDetails['aAddressAdminLevels'];
+
+ if (isset($aPointDetails['asgeojson'])) {
+ $aPlace['geometry'] = json_decode($aPointDetails['asgeojson']);
+ } else {
+ $aPlace['geometry'] = array(
+ 'type' => 'Point',
+ 'coordinates' => array(
+ (float) $aPointDetails['lon'],
+ (float) $aPointDetails['lat']
+ )
+ );
+ }
+ $aFilteredPlaces[] = $aPlace;
+}
+
+
+javascript_renderData(array(
+ 'type' => 'FeatureCollection',
+ 'geocoding' => array(
+ 'version' => '0.1.0',
+ 'attribution' => 'Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright',
+ 'licence' => 'ODbL',
+ 'query' => $sQuery
+ ),
+ 'features' => $aFilteredPlaces
+ ));
--- /dev/null
+<?php
+
+$aFilteredPlaces = array();
+foreach ($aSearchResults as $iResNum => $aPointDetails) {
+ $aPlace = array(
+ 'type' => 'Feature',
+ 'properties' => array(
+ 'place_id'=>$aPointDetails['place_id'],
+ )
+ );
+
+ $sOSMType = formatOSMType($aPointDetails['osm_type']);
+ if ($sOSMType) {
+ $aPlace['properties']['osm_type'] = $sOSMType;
+ $aPlace['properties']['osm_id'] = $aPointDetails['osm_id'];
+ }
+
+ if (isset($aPointDetails['aBoundingBox'])) {
+ $aPlace['bbox'] = array(
+ (float) $aPointDetails['aBoundingBox'][2], // minlon
+ (float) $aPointDetails['aBoundingBox'][0], // minlat
+ (float) $aPointDetails['aBoundingBox'][3], // maxlon
+ (float) $aPointDetails['aBoundingBox'][1] // maxlat
+ );
+ }
+
+ if (isset($aPointDetails['zoom'])) {
+ $aPlace['properties']['zoom'] = $aPointDetails['zoom'];
+ }
+
+ $aPlace['properties']['display_name'] = $aPointDetails['name'];
+
+ $aPlace['properties']['place_rank'] = $aPointDetails['rank_search'];
+ $aPlace['properties']['category'] = $aPointDetails['class'];
+
+ $aPlace['properties']['type'] = $aPointDetails['type'];
+
+ $aPlace['properties']['importance'] = $aPointDetails['importance'];
+
+ if (isset($aPointDetails['icon']) && $aPointDetails['icon']) {
+ $aPlace['properties']['icon'] = $aPointDetails['icon'];
+ }
+
+ if (isset($aPointDetails['address']) && !empty($aPointDetails['address'])) {
+ $aPlace['properties']['address'] = $aPointDetails['address'];
+ }
+
+ if (isset($aPointDetails['asgeojson'])) {
+ $aPlace['geometry'] = json_decode($aPointDetails['asgeojson']);
+ } else {
+ $aPlace['geometry'] = array(
+ 'type' => 'Point',
+ 'coordinates' => array(
+ (float) $aPointDetails['lon'],
+ (float) $aPointDetails['lat']
+ )
+ );
+ }
+
+
+ if (isset($aPointDetails['sExtraTags'])) $aPlace['properties']['extratags'] = $aPointDetails['sExtraTags'];
+ if (isset($aPointDetails['sNameDetails'])) $aPlace['properties']['namedetails'] = $aPointDetails['sNameDetails'];
+
+ $aFilteredPlaces[] = $aPlace;
+}
+
+javascript_renderData(array(
+ 'type' => 'FeatureCollection',
+ 'licence' => 'Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright',
+ 'features' => $aFilteredPlaces
+ ));
$aPlace['lat'] = $aPointDetails['lat'];
$aPlace['lon'] = $aPointDetails['lon'];
+
$aPlace['display_name'] = $aPointDetails['name'];
- if ($sOutputFormat == 'jsonv2') {
+ if ($sOutputFormat == 'jsonv2' || $sOutputFormat == 'geojson') {
$aPlace['place_rank'] = $aPointDetails['rank_search'];
$aPlace['category'] = $aPointDetails['class'];
} else {
And exactly 3 results are returned
Examples:
- | format |
- | xml |
- | json |
+ | format |
+ | xml |
+ | json |
+ | geojson |
Scenario: address lookup for non-existing or invalid node, way, relation
When sending xml lookup query for X99,,N0,nN158845944,ABC,,W9
| format |
| json |
| jsonv2 |
+ | geojson |
| xml |
Scenario Outline: Coordinates must be floating-point numbers
| xml |
| json |
| jsonv2 |
+ | geojson |
Scenario Outline: Reverse Geocoding with namedetails
When sending <format> reverse coordinates 10.776455623137625,106.70175343751907
| xml |
| json |
| jsonv2 |
+ | geojson |
Scenario Outline: Reverse Geocoding contains TEXT geometry
When sending <format> reverse coordinates 47.165989816710066,9.515774846076965
| xml | geojson |
| json | geojson |
| jsonv2 | geojson |
+ | geojson | geojson |
+ Scenario Outline: Reverse Geocoding in geojson format contains no non-geojson geometry
+ When sending geojson reverse coordinates 47.165989816710066,9.515774846076965
+ | polygon_text | polygon | polygon_svg | polygon_geokml |
+ | 1 | 1 | 1 | 1 |
+ Then result 0 has not attributes <response_attribute>
+
+ Examples:
+ | response_attribute |
+ | geotext |
+ | polygonpoints |
+ | svg |
+ | geokml |
Then the result is valid json
When sending jsonv2 reverse coordinates <lat>,<lon>
Then the result is valid json
+ When sending geojson reverse coordinates <lat>,<lon>
+ Then the result is valid geojson
When sending html reverse coordinates <lat>,<lon>
Then the result is valid html
| param | value |
| <parameter> | <value> |
Then the result is valid json
+ When sending geojson reverse coordinates 53.603,10.041
+ | param | value |
+ | <parameter> | <value> |
+ Then the result is valid geojson
Examples:
| parameter | value |
When sending <format> reverse coordinates 67.3245,0.456
| json_callback |
| foo |
- Then the result is valid json
+ Then the result is valid <outformat>
Examples:
- | format |
- | json |
- | jsonv2 |
+ | format | outformat |
+ | json | json |
+ | jsonv2 | json |
+ | geojson | geojson |
Scenario Outline: Boundingbox is returned
When sending <format> reverse coordinates 14.62,108.1
| format |
| json |
| jsonv2 |
+ | geojson |
| xml |
Scenario Outline: Reverse-geocoding with zoom
| format |
| json |
| jsonv2 |
+ | geojson |
| html |
| xml |
| xml |
| json |
| jsonv2 |
+ | geojson |
Scenario Outline: Search with namedetails
When sending <format> search query "Hauptstr"
| xml |
| json |
| jsonv2 |
+ | geojson |
Scenario Outline: Search result with contains TEXT geometry
When sending <format> search query "Highmore"
| xml | geojson |
| json | geojson |
| jsonv2 | geojson |
+ | geojson | geojson |
+
+ Scenario Outline: Search result in geojson format contains no non-geojson geometry
+ When sending geojson search query "Highmore"
+ | polygon_text | polygon | polygon_svg | polygon_geokml |
+ | 1 | 1 | 1 | 1 |
+ Then result 0 has not attributes <response_attribute>
+
+ Examples:
+ | response_attribute |
+ | geotext |
+ | polygonpoints |
+ | svg |
+ | geokml |
Scenario: Search along a route
When sending json search query "restaurant" with address
Then result addresses contain
| city |
| Rapid City |
+
+
| param | value |
| <parameter> | <value> |
Then at least 1 result is returned
+ When sending geojson search query "Hamburg"
+ | param | value |
+ | <parameter> | <value> |
+ Then at least 1 result is returned
Examples:
| parameter | value |
Then the result is valid json
When sending jsonv2 search query "<query>"
Then the result is valid json
+ When sending geojson search query "<query>"
+ Then the result is valid geojson
Examples:
| query |
self.header['json_func'] = m.group(1)
self.result = json.JSONDecoder(object_pairs_hook=OrderedDict).decode(code)
+ def parse_geojson(self):
+ self.parse_json()
+ self.result = geojson_results_to_json_results(self.result)
+
def parse_html(self):
content, errors = tidy_document(self.page,
options={'char-encoding' : 'utf8'})
self.header['json_func'] = m.group(1)
self.result = [json.JSONDecoder(object_pairs_hook=OrderedDict).decode(code)]
+ def parse_geojson(self):
+ self.parse_json()
+ if 'error' in self.result:
+ return
+ self.result = geojson_results_to_json_results(self.result[0])
+
def parse_xml(self):
et = ET.fromstring(self.page)
self.result = [json.JSONDecoder(object_pairs_hook=OrderedDict).decode(self.page)]
+def geojson_result_to_json_result(geojson_result):
+ result = geojson_result['properties']
+ result['geojson'] = geojson_result['geometry']
+ if 'bbox' in geojson_result:
+ # bbox is minlon, minlat, maxlon, maxlat
+ # boundingbox is minlat, maxlat, minlon, maxlon
+ result['boundingbox'] = [
+ geojson_result['bbox'][1],
+ geojson_result['bbox'][3],
+ geojson_result['bbox'][0],
+ geojson_result['bbox'][2]
+ ]
+ return result
+
+
+def geojson_results_to_json_results(geojson_results):
+ if 'error' in geojson_results:
+ return
+ return list(map(geojson_result_to_json_result, geojson_results['features']))
+
+
@when(u'searching for "(?P<query>.*)"(?P<dups> with dups)?')
def query_cmd(context, query, dups):
""" Query directly via PHP script.
if fmt == 'json ':
outfmt = 'json'
+ elif fmt == 'geojson ':
+ outfmt = 'geojson'
else:
outfmt = 'xml'
$oParams = new Nominatim\ParameterParser();
// Format for output
-$sOutputFormat = $oParams->getSet('format', array('xml', 'json'), 'xml');
+$sOutputFormat = $oParams->getSet('format', array('xml', 'json', 'geojson'), 'xml');
// Preferred language
$aLangPrefOrder = $oParams->getPreferredLanguages();
$aExcludePlaceIDs = array();
$sMoreURL = '';
-include(CONST_BasePath.'/lib/template/search-'.$sOutputFormat.'.php');
+$sOutputTemplate = ($sOutputFormat == 'jsonv2') ? 'json' : $sOutputFormat;
+include(CONST_BasePath.'/lib/template/search-'.$sOutputTemplate.'.php');
$oParams = new Nominatim\ParameterParser();
// Format for output
-$sOutputFormat = $oParams->getSet('format', array('html', 'xml', 'json', 'jsonv2'), 'xml');
+$sOutputFormat = $oParams->getSet('format', array('html', 'xml', 'json', 'jsonv2', 'geojson', 'geocodejson'), 'xml');
// Preferred language
$aLangPrefOrder = $oParams->getPreferredLanguages();
$oPlaceLookup = new Nominatim\PlaceLookup($oDB);
$oPlaceLookup->loadParamArray($oParams);
+if ($sOutputFormat == 'geocodejson') {
+ $oPlaceLookup->setAddressDetails(true);
+ $oPlaceLookup->setAddressAdminLevels(true);
+}
$sOsmType = $oParams->getSet('osm_type', array('N', 'W', 'R'));
$iOsmId = $oParams->getInt('osm_id', -1);
$sDataDate = chksql($oDB->getOne("select TO_CHAR(lastimportdate,'YYYY/MM/DD HH24:MI')||' GMT' from import_status limit 1"));
$sTileURL = CONST_Map_Tile_URL;
$sTileAttribution = CONST_Map_Tile_Attribution;
+} elseif ($sOutputFormat == 'geocodejson') {
+ $sQuery = $fLat.','.$fLon;
+ if (isset($aPlace['place_id'])) {
+ $fDistance = chksql($oDB->getOne('SELECT ST_Distance(ST_SetSRID(ST_Point('.$fLon.','.$fLat.'),4326), centroid) FROM placex where place_id='.$aPlace['place_id']));
+ }
}
-$sOutputTemplate = ($sOutputFormat=='jsonv2' ? 'json' : $sOutputFormat);
+$sOutputTemplate = ($sOutputFormat == 'jsonv2') ? 'json' : $sOutputFormat;
include(CONST_BasePath.'/lib/template/address-'.$sOutputTemplate.'.php');
}
// Format for output
-$sOutputFormat = $oParams->getSet('format', array('html', 'xml', 'json', 'jsonv2'), 'html');
+$sOutputFormat = $oParams->getSet('format', array('html', 'xml', 'json', 'jsonv2', 'geojson', 'geocodejson'), 'html');
$sForcedGeometry = ($sOutputFormat == 'html') ? 'geojson' : null;
$oGeocode->loadParamArray($oParams, $sForcedGeometry);
if (CONST_Debug) exit;
-$sOutputTemplate = ($sOutputFormat=='jsonv2' ? 'json' : $sOutputFormat);
+$sOutputTemplate = ($sOutputFormat == 'jsonv2') ? 'json' : $sOutputFormat;
include(CONST_BasePath.'/lib/template/search-'.$sOutputTemplate.'.php');