Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

loading OSM data from pbf file #67

Open
00krishna opened this issue Apr 17, 2022 · 3 comments
Open

loading OSM data from pbf file #67

00krishna opened this issue Apr 17, 2022 · 3 comments

Comments

@00krishna
Copy link

Hello. I was wondering if I can load OSM data from a file--instead of downloading from the internet? I downloaded a big OSM file and I wanted to see if I could import that data into LightOSM for analysis. I did not see this file access stuff in the tutorial or api docs, but I imagine it must be in there somewhere :). Thanks.

@mmiller-max
Copy link
Contributor

Hi, thanks for your question!

Currently LightOSM can read from a .osm file or a .json file, unfortunately .pbf is not currently supported - I suggest we leave this issue open to track that and we can try to add it as a feature in future.

Here is a link to the function to load a graph from a file.

@00krishna
Copy link
Author

@mmiller-max Thanks so much for the info. I am not sure if it will help, but in looking at the OpenStreetMapX.jl package, the developers indicated that they can read pbf files. i believe that LightOSM also drew a lot of inspiration from OpenStreetMapX. I wonder if there is a way to leverage what has already been developed, to allow LightOSM to pull in pbf files?

@mmiller-max
Copy link
Contributor

Yes, I'm sure we could do something similar to OpenStreenMapX.jl, or similarly OpenStreetMapParser.jl or OpenStreetMapPBF.jl. Just needs someone to take a look and see how they've been done and make a PR :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants