diff options
| author | Adam Tauber <asciimoo@gmail.com> | 2020-06-10 00:34:57 +0200 |
|---|---|---|
| committer | Adam Tauber <asciimoo@gmail.com> | 2020-06-10 00:34:57 +0200 |
| commit | aa7c043ff40bd1c1ec2e81748627aeac24608580 (patch) | |
| tree | 786afec561e6cf3365559704f6d100ce72ee9810 /searx | |
| parent | 43f7b84a59fe60571bb74e1147101f59ca1954eb (diff) | |
[fix] resolve pep8 errors
Diffstat (limited to 'searx')
| -rw-r--r-- | searx/engines/openstreetmap.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/searx/engines/openstreetmap.py b/searx/engines/openstreetmap.py index 011523433..257b1a1b3 100644 --- a/searx/engines/openstreetmap.py +++ b/searx/engines/openstreetmap.py @@ -23,7 +23,7 @@ base_url = 'https://nominatim.openstreetmap.org/' search_string = 'search/{query}?format=json&polygon_geojson=1&addressdetails=1' 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 (.+)') @@ -41,7 +41,6 @@ def response(resp): results = [] json = loads(resp.text) - if resp.search_params['route']: results.append({ 'answer': gettext('Get directions'), |