Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aa7c043f authored by Adam Tauber's avatar Adam Tauber
Browse files

[fix] resolve pep8 errors

parent 43f7b84a
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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'),