mirror of
https://github.com/searxng/searxng.git
synced 2024-11-22 20:17:45 +01:00
[fix] resolve pep8 errors
This commit is contained in:
parent
43f7b84a59
commit
aa7c043ff4
@ -23,7 +23,7 @@ base_url = 'https://nominatim.openstreetmap.org/'
|
|||||||
search_string = 'search/{query}?format=json&polygon_geojson=1&addressdetails=1'
|
search_string = 'search/{query}?format=json&polygon_geojson=1&addressdetails=1'
|
||||||
result_base_url = 'https://openstreetmap.org/{osm_type}/{osm_id}'
|
result_base_url = 'https://openstreetmap.org/{osm_type}/{osm_id}'
|
||||||
|
|
||||||
route_url = 'https://graphhopper.com/maps/?point={}&point={}&locale=en-US&vehicle=car&weighting=fastest&turn_costs=true&use_miles=false&layer=Omniscale'
|
route_url = 'https://graphhopper.com/maps/?point={}&point={}&locale=en-US&vehicle=car&weighting=fastest&turn_costs=true&use_miles=false&layer=Omniscale' # noqa
|
||||||
route_re = re.compile('(?:from )?(.+) to (.+)')
|
route_re = re.compile('(?:from )?(.+) to (.+)')
|
||||||
|
|
||||||
|
|
||||||
@ -41,7 +41,6 @@ def response(resp):
|
|||||||
results = []
|
results = []
|
||||||
json = loads(resp.text)
|
json = loads(resp.text)
|
||||||
|
|
||||||
|
|
||||||
if resp.search_params['route']:
|
if resp.search_params['route']:
|
||||||
results.append({
|
results.append({
|
||||||
'answer': gettext('Get directions'),
|
'answer': gettext('Get directions'),
|
||||||
|
Loading…
Reference in New Issue
Block a user