d66cfb74ac8c3b55f9728b57230387466e69e7d1,osmnx/pois.py,,create_poi_gdf,#Any#Any#Any#Any#Any#Any#Any#,130

Before Change


                    "osmid": result["id"],
                    "geometry": point
                }
                if "tags" in result:
                    for tag in result["tags"]:
                        poi[tag] = result["tags"][tag]
                pois[result["id"]] = poi

            except Exception:
                log("Point has invalid geometry: {}".format(result["id"]))

After Change


    gdf_nodes = gpd.GeoDataFrame(pois).T
    gdf_nodes.crs = {"init": "epsg:4326"}

    gdf_ways = gpd.GeoDataFrame(poi_ways).T
    gdf_ways.crs = {"init": "epsg:4326"}

    // Parse relations (MultiPolygons) from "ways"
    gdf_ways = parse_osm_relations(relations=relations, osm_way_df=gdf_ways)

    return (gdf_nodes, gdf_ways)

def pois_from_point(point, distance=None, amenities=None, retain_invalid=False):
    
    Get Point of interests (POIs) within some distance north, south, east, and west of
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: gboeing/osmnx
Commit Name: d66cfb74ac8c3b55f9728b57230387466e69e7d1
Time: 2017-12-25
Author: henrikki.tenkanen@helsinki.fi
File Name: osmnx/pois.py
Class Name:
Method Name: create_poi_gdf


Project Name: gboeing/osmnx
Commit Name: cc2c3376832df749fc386f31621eff0b9babc1ea
Time: 2018-05-03
Author: henrikki.tenkanen@helsinki.fi
File Name: osmnx/pois.py
Class Name:
Method Name: create_poi_gdf


Project Name: gboeing/osmnx
Commit Name: aeae6b8600c13c5989be7e0f835b48b28c1c0d98
Time: 2020-08-28
Author: webmail@nickbristow.co.uk
File Name: osmnx/geometries.py
Class Name:
Method Name: _create_gdf