Skip to content

filter gps waypoints within a certain radius of a (roadtrip) path

Notifications You must be signed in to change notification settings

smjim/csv_geodata_filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

csv geodata filter

  • filters geodata stored in csv filetypes by their haversine distance from a given coordinate
  • edit coords, radius, datafile in script and run

imagen view fullscreen

howto:

  1. make a route using GraphHopper
  2. export route to .gpx file format by hitting the gpx button below waypoint input, and selecting the track checkbox
  3. export points of interest data to .csv filetype if using overpass-turbo data mining utility, export data as .gpx & convert to .csv with gpx_converter:
    $ pip install gpx-converter
    $ python3
    >>> from gpx_converter import Converter
    >>> Converter(input_file='sample.gpx').gpx_to_csv(output_file='output.csv')
    
  4. edit filter.py to include all the necessary files (GPXfile, poi file)
  5. run filter.py
  6. view output as csv or graphically with umap (ctrl+I import out.csv)

possible future expansions:

  • instead of only selecting points within radius of a given point, select points within radius of a given path (or google maps route), to narrow down candidates for visitation on a roadtrip
  • instead of only taking data from csv coordinates, also take data from alltrails to find hiking trails along the way/ nearby

further info:

About

filter gps waypoints within a certain radius of a (roadtrip) path

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages