diff --git a/Project.toml b/Project.toml index 0bc9cdc..df2b02b 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "OpenStreetMapX" uuid = "86cd37e6-c0ff-550b-95fe-21d72c8d4fc9" authors = ["Przemyslaw Szufel ", "Bartosz Pankratz ", "Anna Szczurek ", "Bogumil Kaminski ", "Pawel Pralat "] -version = "0.2.2" +version = "0.2.3" [deps] DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8" @@ -16,7 +16,7 @@ Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2" [compat] DataStructures = "^0.17.0, ^0.18.0" -HTTP = "^0.7.0, ^0.8.0" +HTTP = "^0.7.0, ^0.8.0, ^0.9.0" JSON = "^0.20.0, ^0.21.0" LibExpat = "^0.6.0" LightGraphs = "^1.3.3" diff --git a/src/types.jl b/src/types.jl index a4225d5..35c7257 100644 --- a/src/types.jl +++ b/src/types.jl @@ -258,13 +258,13 @@ This is the main data structure used fot map data analytics. * `roadways` : unique roads stored as a OpenStreetMapX.Way objects * `intersections` : roads intersections * `g` : `LightGraphs` directed graph representing a road network -* `v` : vertices in the road network -* `n` : OpenStreetMap node ids for the graphs vertices -* `e` : edges in the graph represented as a tuple (source,destination) -* `w` : edge weights, indexed by graph id +* `v` : vertices in the road network (node id .=> graph vertex) +* `n` : vector of OpenStreetMap node ids for each corresponding graph vertex +* `e` : vector of edges in the graph represented as a tuple (source,destination) +* `w` : sparse matrix of edge weights, indexed by graph id * `class` : road class of each edge """ -struct MapData +mutable struct MapData bounds::Bounds{LLA} nodes::Dict{Int,ENU} roadways::Array{Way,1}