Skip to content

An exemplary use of geoinformatics: The program calculates the average distance of a resident to the nearest playground within a city.

Notifications You must be signed in to change notification settings

meetunix/playground-distance

Repository files navigation

playground-distance

An example in geoinformatics. The program calculates the average distance of a resident to the nearest playground within his city. In this example open data from the city of Rostock is used.

Sources and Services

The program uses the following sources and services.

  1. Anthropogene Überprägung der Konzeptbodenkarte 2018 (areas of Rostock where people live)

  2. Gerätespielanlagen list of playgrounds

  3. Direction API from openrouteservice.org

Method

The script average-distance.py simulates according to the following method.

  1. Generation of random coordinates (uniform distribution) within the city limits.

  2. Saving those coordinates that are within an inhabited are.

  3. For each random coordinate: calculate the three nearest playgrounds (euclidean distance)

  4. Using openrouteservice to calculate the actual distance (on foot) in meter of these three points.

  5. Save the nearest random coordinate and the corresponding distance in results.csv. (Maybe you want to run average-distance.py more than once, due to the api restrictions of openrouteservice.org)

  6. Calculate the average distance with calc-average-from-csv.py

  7. Using QGIS to visualize the coordinates and the ares on a map.

orange: random coordinates, blue: playgrounds, green: inhabited areas

Run the Simulation

...

About

An exemplary use of geoinformatics: The program calculates the average distance of a resident to the nearest playground within a city.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages