bfe431ad27f95e92372d12e1236ca2419e564315,osmnx/geo_utils.py,,geocode,#Any#,576

Before Change


    // send the query to the nominatim geocoder and parse the json response
    url_template = "https://nominatim.openstreetmap.org/search?format=json&limit=1&q={}"
    url = url_template.format(query)
    response = requests.get(url, timeout=60)
    results = response.json()

    // if results were returned, parse lat and long out of the result
    if len(results) > 0 and "lat" in results[0] and "lon" in results[0]:
        lat = float(results[0]["lat"])

After Change


    

    // define the parameters
    params = OrderedDict()
    params["format"] = "json"
    params["limit"] = 1
    params["dedupe"] = 0  // prevent OSM from deduping results so we get precisely "limit" // of results
    params["q"] = query
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: gboeing/osmnx
Commit Name: bfe431ad27f95e92372d12e1236ca2419e564315
Time: 2020-02-13
Author: boeing@usc.edu
File Name: osmnx/geo_utils.py
Class Name:
Method Name: geocode


Project Name: catalyst-team/catalyst
Commit Name: dd28dc9f3f6604a1f9ddfdf0e10fcf35d4e9420e
Time: 2019-08-18
Author: 19803638+bagxi@users.noreply.github.com
File Name: catalyst/dl/experiment/config.py
Class Name: ConfigExperiment
Method Name: get_optimizer