matejker / everystreet Goto Github PK
View Code? Open in Web Editor NEWAn algorithm finding #everystreet route on Open Street Map (OSMnx)
Home Page: http://www.everystreetchallenge.com/
License: MIT License
An algorithm finding #everystreet route on Open Street Map (OSMnx)
Home Page: http://www.everystreetchallenge.com/
License: MIT License
keep from trying to route us onto roads inappropriate for running.
Problem: in the current settings runners are routed onto highways
which are definitely unsuitable for runners e.g. motorway
Solution: Specify custom_filter
in osmnx.graph.graph_from_polygon
[1], for an inspiration can be use CityStrides Street Query [2].
osmnx.graph.graph_from_polygon(polygon, network_type='all', simplify=True, retain_all=False, truncate_by_edge=False, clean_periphery=True, custom_filter=custom_filter)
[1] OSMnx docs
https://osmnx.readthedocs.io/en/stable/osmnx.html?highlight=custom%20filter#osmnx.graph.graph_from_polygon
[2] CityStrides Street Query
https://docs.google.com/spreadsheets/d/1dbj5giwBhCG-jWmokCnQOJhkIEE132FvXVyrvDL7tSU/edit#gid=1943684409
...
Preparing editable metadata (pyproject.toml) ... done
WARNING: Generating metadata for package network produced metadata for project name mk-network. Fix your #egg=network fragments.
Discarding git+https://github.com/matejker/network@master#egg=network: Requested mk-network from git+https://github.com/matejker/network@master#egg=network (from -r requirements.txt (line 2)) has inconsistent name: expected 'network', but metadata has 'mk-network'
ERROR: Could not find a version that satisfies the requirement network (unavailable) (from versions: 0.1)
ERROR: No matching distribution found for network (unavailable)
i think line 2 in requirement.txt should be:
-e git://github.com/matejker/network@master#egg=mk-network
Trying to create the GPX file from the results but get an error that OSMnx has no attribute 'extended_stats'
Looking at the docs for OSMnx it seems extended_stats doesn't exist, unable to see if this has been deprecated either.
I'm sorry, is it a local problem or is it not possible to install in general?
Should I do something?
pip install -e git://github.com/matejker/network@master#egg=network
Obtaining network from git+git://github.com/matejker/network@master#egg=network
Cloning git://github.com/matejker/network (to revision master) to c:\laragon\www\pyt\everystreet-master\src\network
Running command git clone --filter=blob:none --quiet git://github.com/matejker/network 'C:\laragon\www\PYT\everystreet-master\src\network'
fatal: unable to connect to github.com:
github.com[0: 140.82.121.4]: errno=Unknown error
error: subprocess-exited-with-error
Hello, how difficult would it be to make this algorithm work for cars and consider that cars can only go a particular way on one-way roads?
P.S. Great job on solving the CPP problem.
Hello! I'm new to github and joined to cite issues I've been having on everystreetchallenge.com. I have been using the software for a few weeks now and it has helped me create routes to run every street in my city (Reno, Nevada). I coming across this problem where I try to outline an area in a several neighborhoods and then click on generate, it pops up an error message that says "undefined" and "route can't be generated". It then brings me back to the home back, erasing my selection. It does this constantly with the same areas and nothing seems to fix it (refreshing, restarting PC). I would like to know if there is a way to fix this or someway to work around it. Do it have to run it locally? Anyways, I've attached a photo of a broken selection and of the error message that I receive.
What you've created here looks awesome but as others have found the web app doesn't work. I've tried to clone and setup locally but the requirements are conflicting. I modded the version requirements for a while to try and fix it, then ended up just removing all version specifications but it still doesn't work. The worst of it is:
The conflict is caused by:
The user requested networkx
osmnx 1.2.2 depends on networkx>=2.8
mk-network 0.1.1 depends on networkx==2.4
I am trying to implement the problem using python. When I try running the code, hierholzer is not found in network algorithms. Can you give me an solution ?
Problem: Not all streets are visited, path is connecting nodes directly and not according to street network
Example: http://www.everystreetchallenge.com/route/625d8586-5e80-45b7-b9e4-3eb5e101db95
I would be nice, if you could follow the OSM attribution rules
https://wiki.osmfoundation.org/wiki/Licence/Licence_and_Legal_FAQ#How_should_I_attribute_you.3F
Thank you
It would be great if the starting point of the circuit could be selected such that a location with good parking for instance might be selected, or a person's home.
After drawing polygon and then clicking "Generate Route" it shows "Loading..." above the search box and then nothing happens for a very long time:
Also your link with text "The Grange, Edinburgh" to http://www.everystreetchallenge.com/route/fa462d3e-8c48-43ad-bfa1-06c4426f7328 on http://www.everystreetchallenge.com/about is broken too.
I am using Chrome Version 85.0.4183.121 (Official Build) (64-bit) on Ubuntu Linux.
Requirements.txt seem to be contradictory if pulling the current version of "networks" from your git repo.
I can't seem to make it to generate a route for berlin :( any hints?
using this code to create the animated GIF however it instead seems to create each frame and open them one by one . It will not create the next frame until I close the window for the current one. Once it has gone through every frame it leaves behind a series of PNG files but no GIF:
convert_final_path_to_coordinates(org_graph, final_path)
for i, e in enumerate(final_path, start=1):
fig, ax = plot_graph_route(org_graph, final_path[:i], route_linewidth=6, node_size=0, bgcolor="w", route_alpha=0.2)
ax.set_title(location)
fig.savefig(f"./img_{i}.png", dpi=120, bbox_inches="tight")
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.