-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
ltokareva
committed
Mar 22, 2024
1 parent
c30254c
commit 77be6a4
Showing
5 changed files
with
125 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
name = "LightOSM" | ||
uuid = "d1922b25-af4e-4ba3-84af-fe9bea896051" | ||
authors = ["Jack Chan <[email protected]>"] | ||
version = "0.3.0" | ||
version = "0.3.1" | ||
|
||
[deps] | ||
DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
using JSON3, LightOSM | ||
tags_filter = Dict( | ||
"DTP_REG_NAME" => "GREATER METRO", | ||
"LGA_ABB_NAME" => "CASEY", | ||
"MEL30_ART" => "N", | ||
) | ||
|
||
vmt_tags = Dict( | ||
"ufi" => "59472156", | ||
"div_rd" => "U", | ||
"road_name" => "ORMISTON", | ||
"road_seal" => "1" | ||
) | ||
# f = open("/Users/ltokareva/Desktop/small_osm.json", "r"); | ||
# data = JSON3.read(f, Dict); | ||
|
||
# for element in data["elements"] | ||
# element["id"] = string(element["id"]) | ||
# if element["type"] == "way" | ||
# element["nodes"] = [string(i) for i in element["nodes"]] | ||
# end | ||
# end | ||
|
||
# empty_vsls = JSON3.write(data); | ||
# open("/Users/ltokareva/Desktop/osm_sample_string_id.json","w") do f | ||
# write(f, empty_vsls) | ||
# end | ||
|
||
# Original file | ||
# data_file = "/Users/ltokareva/Desktop/small_osm.json" | ||
# Edited file | ||
# data_file = "/Users/ltokareva/Desktop/graph_benchmarking/osm_sample_string_id.json" | ||
data_file = "/Users/ltokareva/Desktop/graph_benchmarking/small_osm.json" | ||
data_file = "/Users/ltokareva/Desktop/graph_benchmarking/osm_vicmap_tags.json" | ||
# osm_string_id_graph = graph_from_file(data_file, weight_type=:distance, precompute_dijkstra_states=true) | ||
osm_int_id_graph = graph_from_file(data_file, weight_type=:distance, precompute_dijkstra_states=true) | ||
|
||
# Adding Vicmap tags | ||
f = open(data_file, "r"); | ||
data = JSON3.read(f, Dict); | ||
typeof(data) | ||
|
||
|
||
for element in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters