'licence' => 'ODbL',
'query' => $sQuery
),
- 'features' => $aFilteredPlaces
+ 'features' => [$aFilteredPlaces]
));
}
)
);
- if (isset($aPlace['place_id'])) $aPlace['properties']['geocoding']['place_id'] = $aPointDetails['place_id'];
- $sOSMType = formatOSMType($aPlace['osm_type']);
+ if (isset($aPointDetails['place_id'])) $aPlace['properties']['geocoding']['place_id'] = $aPointDetails['place_id'];
+ $sOSMType = formatOSMType($aPointDetails['osm_type']);
if ($sOSMType) {
$aPlace['properties']['geocoding']['osm_type'] = $sOSMType;
$aPlace['properties']['geocoding']['osm_id'] = $aPointDetails['osm_id'];
| param | value |
| <parameter> | <value> |
Then the result is valid geojson
+ When sending geocodejson reverse coordinates 53.603,10.041
+ | param | value |
+ | <parameter> | <value> |
+ Then the result is valid geocodejson
Examples:
| parameter | value |
| param | value |
| <parameter> | <value> |
Then at least 1 result is returned
+ When sending geocodejson search query "Hamburg"
+ | param | value |
+ | <parameter> | <value> |
+ Then at least 1 result is returned
Examples:
| parameter | value |
self.parse_json()
self.result = geojson_results_to_json_results(self.result)
+ def parse_geocodejson(self):
+ return self.parse_geojson()
+
def parse_html(self):
content, errors = tidy_document(self.page,
options={'char-encoding' : 'utf8'})
return
self.result = geojson_results_to_json_results(self.result[0])
+ def parse_geocodejson(self):
+ return self.parse_geojson()
+
def parse_xml(self):
et = ET.fromstring(self.page)