eumiro / pygohome Goto Github PK
View Code? Open in Web Editor NEWA 100% personal route optimizer in a known environment based on experience
Home Page: https://eumiro.github.io
License: MIT License
A 100% personal route optimizer in a known environment based on experience
Home Page: https://eumiro.github.io
License: MIT License
based on this tweet: https://twitter.com/eumiro/status/1257008378800484352?s=20
> Also I want to find a fast Pythonic way to read the GPX files to avoid (fast but still an extra step) gpsbabel.
I've had success with gpxpy (and I think now the slow datetime recognition is improved).
Basic usage:
with open(filename, 'rb') as gpx_file:
gpx = gpxpy.parse(gpx_file, parser='lxml')
#gpx = gpxpy.parse(gpx_file, parser='minidom')
# loop through gpx file and extract each point
for track in gpx.tracks:
for segment in track.segments:
for p in segment.points:
# do something here
To convert lat/long to UTM grid, you can use this package: https://github.com/Turbo87/utm
import utm
utm.from_latlon(51.2, 7.5)
my opinion: rather than convert to a table/csv, I'd just convert the gpx to an array of dicts (one for each gps point), using the above tools. Then use pandas.from_dict().
... which is not ignored in .gitignore
which means after a nox run there are uncommitted changes.
I am not familiar with poetry
, so am not sure what to do about this.
… more ideas in further comments?
Use the world.single_source_periods
method to plot an isochrone quantile-depending map.
The user chooses a POI and quantile and it shows the routes to all other waypoints and the period needed to get there.
In matplotlib there is pyplot.tricontour
. Let's see what ipyleaflet
can do.
If I upload GPX files whose total is over 10MB, it says nothing and they are not added to the world.
Looks like this will be solved with the next version of ipywidgets
: jupyter-widgets/ipywidgets#2522
Instead of testing with real data and local knowledge, build a virtual city model with a few roads, intersections, 4–5 points of interest (home, work, shop, …) and a dozen or so of virtual GPX tracks, illustrating the principle and a few edge cases.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.