Skip to content

salbert83/OpenStreetMapX.jl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenStreetMapX.jl

This is a complete re-write of OpenStreetMap.jl package.

Compared to the original package major changes include:

  • Plots.jl with GR is used as backend for map vizualization (via a separate package OpenStreetMapXPlot.jl)
  • LightGraphs.jl is used for map data storage
  • Several changes with routing algorithm (currently finding a route in a 1 million people city takes around 250ms)
  • Data structure adjustment to make the library more suitable to run simulations of cities.

The goal of this package is to provide a backbone for multi-agent simulation of cities. The prototype simulator has been implemented in OpenStreetMapXPSim.jl).

Installation

The current version uses Julia 1.0.0

using Pkg; Pkg.add(PackageSpec(url="https://github.com/pszufe/OpenStreetMapX.jl"))

Usage

using OpenStreetMapX
map_data = OpenStreetMapX.get_map_data("/home/ubuntu/", "mymap.osm");

println("The map contains $(length(map_data.nodes)) nodes")

See the samples directory for a more complete example.

Any pull requests are welcome!

Acknowledgments

This code is a major re-write of https://github.com/tedsteiner/OpenStreetMap.jl project. The creation of this source code was partially financed by research project supported by the Ontario Centres of Excellence ("OCE") under Voucher for Innovation and Productivity (VIP) program, OCE Project Number: 30293, project name: "Agent-based simulation modelling of out-of-home advertising viewing opportunity conducted in cooperation with Environics Analytics of Toronto, Canada.

About

OpenStreetMap support for Julia 1.0

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Julia 100.0%