Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

fetch_pois.py

Class OsmObject

Represents an object for fetching and processing OpenStreetMap Points of Interest (POIs).

OsmObject.RelationtoPoint(string)

Description:

Converts a relation geometry to a point geometry.

Parameters:

Returns:


OsmObject.GenerateOSMPOIs()

Description:

Generates OpenStreetMap Points of Interest (POIs) within a given bounding box.

Parameters:

Returns:


OsmObject.RemoveDupes(buf_width, crs='epsg:4326')

Description:

Remove duplicate geometries from the GeoDataFrame.

Parameters:

Returns:


OsmObject.prepForMA()

Description:

Prepare results data frame for use in the OSRM functions in OD.

Parameters:

Returns:


OsmObject.Save(outFolder)

Description:

Save the dataframe as a CSV file in the specified output folder.

Parameters:

Returns: