services module

geopedestrian.services.analyze_walking(client: GeoRapidClient, latitude: float, longitude: float, category_id: str)

Analyzes walking to categorized places which are accessible by a pedestrian in 15 minutes. The analysis result is a 150 meter spatial grid where each cell contains at least one place.

Parameters:
  • client (georapid.client.GeoRapidClient) – The client instance to use for this query.

  • latitude (float) – The latitude representing the current pedestrian location.

  • longitude (float) – The longitude representing the current pedestrian location.

  • category_id (str) – The defined category.

Returns:

The walking analysis spatial grid cells as GeoJSON.

geopedestrian.services.drive_from(client: GeoRapidClient, latitude: float, longitude: float, category_id: str)

Drive from categorized places which are accessible by car to the pedestrian location.

Parameters:
  • client (georapid.client.GeoRapidClient) – The client instance to use for this query.

  • latitude (float) – The latitude representing the current pedestrian location.

  • longitude (float) – The longitude representing the current pedestrian location.

  • category_id (str) – The defined category.

Returns:

The places which can reach the pedestrian with driving areas as GeoJSON.

geopedestrian.services.solve_walking(client: GeoRapidClient, latitude: float, longitude: float, break_values: List[int] = [5, 10, 15])

Solves walking areas representing areas which are accessible by a pedestrian.

Parameters:
  • client (georapid.client.GeoRapidClient) – The client instance to use for this query.

  • latitude (float) – The latitude representing the current pedestrian location.

  • longitude (float) – The longitude representing the current pedestrian location.

  • break_values (List[int]) – The break values for each walking area in minutes.

Returns:

The calculated walking areas as GeoJSON.

geopedestrian.services.walk_from(client: GeoRapidClient, latitude: float, longitude: float, category_id: str)

Walk from categorized places which are accessible to the pedestrian location.

Parameters:
  • client (georapid.client.GeoRapidClient) – The client instance to use for this query.

  • latitude (float) – The latitude representing the current pedestrian location.

  • longitude (float) – The longitude representing the current pedestrian location.

  • category_id (str) – The defined category.

Returns:

The places which can reach the pedestrian with walking routes as GeoJSON.

geopedestrian.services.walk_to(client: GeoRapidClient, latitude: float, longitude: float, category_id: str)

Walk to categorized places which are accessible by a pedestrian.

Parameters:
  • client (georapid.client.GeoRapidClient) – The client instance to use for this query.

  • latitude (float) – The latitude representing the current pedestrian location.

  • longitude (float) – The longitude representing the current pedestrian location.

  • category_id (str) – The defined category.

Returns:

The accessible places with walking routes as GeoJSON.