mormon 2.0.2 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/README.md +7 -13
- data/lib/mormon/osm_loader.rb +32 -44
- data/lib/mormon/osm_router.rb +22 -21
- data/lib/mormon/version.rb +1 -1
- data/lib/mormon/weight.rb +1 -0
- data/mormon.gemspec +3 -4
- metadata +19 -29
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: bc716b3e1ce51d7d6bc2da6aebd4015438b5998cfce3d08abcbfccbdf02e467f
|
4
|
+
data.tar.gz: 1fc718d5ec92bdc2ecb824f1c96c27e2fb2e611810ee1c12d5cb82fb69292d54
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: b8da4d1df4f858b633fcc476c042dceba19ccfde4c70ed689eb49a18f1f02b15027755084c21b1e8bb1f30ecc9875c9e1b299a5067902cfe113fbd2cd4669d03
|
7
|
+
data.tar.gz: 357cdddb94aff94615e355a5c6a5ce04d268e3695288d83c2f97d027b404cadf08489d8041b9548072240d09df91d57491ec4c5e8afb882fdaf07ce0eadd07f2
|
data/README.md
CHANGED
@@ -36,11 +36,11 @@ Caching
|
|
36
36
|
=======
|
37
37
|
|
38
38
|
You probably wants to cache the parsed osm file:
|
39
|
-
|
40
|
-
osm_loader = Mormon::OSM::Loader.new "path/to/filename.osm", :cache => true
|
39
|
+
|
40
|
+
osm_loader = Mormon::OSM::Loader.new "path/to/filename.osm", :cache => true
|
41
41
|
|
42
42
|
The previous code generate a filename.pstore file and it's stored in Dir.tmpdir, "mormon", "cache" depending of your so, if you need to change the cache dir try ie:
|
43
|
-
|
43
|
+
|
44
44
|
cache_dir = File.join File.dirname(__FILE__), "cache"
|
45
45
|
Mormon::OSM::Loader.cache_dir = cache_dir
|
46
46
|
osm_loader = Mormon::OSM::Loader.new "path/to/file.osm", :cache => true
|
@@ -57,15 +57,15 @@ The default algorithm is A* with weights, but a Random algorithm is available, i
|
|
57
57
|
|
58
58
|
**KNOWN ISSUE**: the actual random algorithm has problems when the different between start and end is enough far, i'm working to fix it.
|
59
59
|
|
60
|
-
Breadth in
|
60
|
+
Breadth in random algorithm
|
61
61
|
-----
|
62
62
|
|
63
63
|
The programming technique to find a random route is Backtracking, so in order to don't loop forever we need to narrow the search in neighbors, for that reason i use a breadth value combined with distance between start and end nodes:
|
64
|
-
|
64
|
+
|
65
65
|
max_amplitude = @breadth * distance(start, end)
|
66
66
|
|
67
67
|
The default breadth value is 2 but you could change it doing one of:
|
68
|
-
|
68
|
+
|
69
69
|
osm_router = Mormon::OSM::Router.new osm_loader, :algorithm => :random, :breadth => 1.5
|
70
70
|
or
|
71
71
|
osm_router.algorithm.breath = 2.5
|
@@ -73,10 +73,4 @@ The default breadth value is 2 but you could change it doing one of:
|
|
73
73
|
License
|
74
74
|
=======
|
75
75
|
|
76
|
-
|
77
|
-
|
78
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
79
|
-
|
80
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
81
|
-
|
82
|
-
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
76
|
+
LICENSE.txt
|
data/lib/mormon/osm_loader.rb
CHANGED
@@ -4,15 +4,15 @@ require 'tmpdir'
|
|
4
4
|
module Mormon
|
5
5
|
module OSM
|
6
6
|
class Loader
|
7
|
-
|
7
|
+
|
8
8
|
@route_types = [:cycle, :car, :train, :foot, :horse]
|
9
9
|
@cache_dir = File.join Dir.tmpdir, "mormon", "cache"
|
10
|
-
|
10
|
+
|
11
11
|
class << self
|
12
12
|
attr_reader :route_types
|
13
13
|
attr_accessor :cache_dir
|
14
14
|
end
|
15
|
-
|
15
|
+
|
16
16
|
attr_reader :options, :routing, :nodes, :ways, :tiles, :routeable_nodes, :route_types,
|
17
17
|
:osm_filename
|
18
18
|
|
@@ -22,7 +22,7 @@ module Mormon
|
|
22
22
|
@tiles = {}
|
23
23
|
@nodes = {}
|
24
24
|
@ways = {}
|
25
|
-
|
25
|
+
|
26
26
|
@routing = {}
|
27
27
|
@routeable_nodes = {}
|
28
28
|
|
@@ -41,7 +41,7 @@ module Mormon
|
|
41
41
|
def report
|
42
42
|
report = "Loaded %d nodes,\n" % @nodes.keys.size
|
43
43
|
report += "%d ways, and...\n" % @ways.keys.size
|
44
|
-
|
44
|
+
|
45
45
|
Loader.route_types.each do |type|
|
46
46
|
report += " %d %s routes\n" % [@routing[type].keys.size, type]
|
47
47
|
end
|
@@ -52,18 +52,18 @@ module Mormon
|
|
52
52
|
def cache_filename
|
53
53
|
File.join Loader.cache_dir, File.basename(@osm_filename) + ".pstore"
|
54
54
|
end
|
55
|
-
|
55
|
+
|
56
56
|
private
|
57
57
|
def load_cached
|
58
58
|
require "pstore"
|
59
|
-
|
59
|
+
|
60
60
|
store_path = cache_filename
|
61
61
|
|
62
62
|
FileUtils.mkdir_p Loader.cache_dir
|
63
63
|
FileUtils.touch store_path
|
64
|
-
|
64
|
+
|
65
65
|
store = PStore.new store_path
|
66
|
-
|
66
|
+
|
67
67
|
if !File.zero? store_path
|
68
68
|
puts "Loading from cache %s..." % store.path
|
69
69
|
|
@@ -78,7 +78,7 @@ module Mormon
|
|
78
78
|
@routeable_nodes[type] = store[:routeable_nodes][type]
|
79
79
|
end
|
80
80
|
end
|
81
|
-
|
81
|
+
|
82
82
|
else
|
83
83
|
puts "Parsing %s..." % @osm_filename
|
84
84
|
parse
|
@@ -87,7 +87,7 @@ module Mormon
|
|
87
87
|
store.transaction do
|
88
88
|
store[:tiles] = @tiles
|
89
89
|
store[:nodes] = @nodes
|
90
|
-
store[:ways] = @ways
|
90
|
+
store[:ways] = @ways
|
91
91
|
store[:tiles] = @tiles
|
92
92
|
|
93
93
|
store[:routing] = {}
|
@@ -104,12 +104,12 @@ module Mormon
|
|
104
104
|
|
105
105
|
def parse
|
106
106
|
puts "Loading %s.." % @osm_filename
|
107
|
-
|
107
|
+
|
108
108
|
if !File.exists?(@osm_filename)
|
109
109
|
print "No such data file %s" % @osm_filename
|
110
110
|
return false
|
111
111
|
end
|
112
|
-
|
112
|
+
|
113
113
|
osm = Nokogiri::XML File.open(@osm_filename)
|
114
114
|
|
115
115
|
load_nodes osm
|
@@ -119,13 +119,13 @@ module Mormon
|
|
119
119
|
def load_nodes(nokosm)
|
120
120
|
nokosm.css('node').each do |node|
|
121
121
|
node_id = node[:id]
|
122
|
-
|
122
|
+
|
123
123
|
@nodes[node_id] = {
|
124
124
|
lat: node[:lat].to_f,
|
125
125
|
lon: node[:lon].to_f,
|
126
126
|
tags: {}
|
127
127
|
}
|
128
|
-
|
128
|
+
|
129
129
|
node.css('tag').each do |t|
|
130
130
|
k,v = t[:k].to_sym, t[:v]
|
131
131
|
@nodes[node_id][:tags][k] = v unless useless_tags.include?(k)
|
@@ -136,12 +136,12 @@ module Mormon
|
|
136
136
|
def load_ways(nokosm)
|
137
137
|
nokosm.css('way').each do |way|
|
138
138
|
way_id = way[:id]
|
139
|
-
|
139
|
+
|
140
140
|
@ways[way_id] = {
|
141
141
|
nodes: way.css('nd').map { |nd| nd[:ref] },
|
142
142
|
tags: {}
|
143
143
|
}
|
144
|
-
|
144
|
+
|
145
145
|
way.css('tag').each do |t|
|
146
146
|
k,v = t[:k].to_sym, t[:v]
|
147
147
|
@ways[way_id][:tags][k] = v unless useless_tags.include?(k)
|
@@ -154,31 +154,31 @@ module Mormon
|
|
154
154
|
def useless_tags
|
155
155
|
[:created_by]
|
156
156
|
end
|
157
|
-
|
157
|
+
|
158
158
|
def way_access(highway, railway)
|
159
159
|
access = {}
|
160
|
-
access[:cycle] = [:primary, :secondary, :tertiary, :unclassified, :minor, :cycleway,
|
161
|
-
:residential, :track, :service].include?
|
162
|
-
|
163
|
-
access[:car] = [:motorway, :trunk, :primary, :secondary, :tertiary,
|
164
|
-
:unclassified, :minor, :residential, :service].include?
|
165
|
-
|
166
|
-
access[:train] = [:rail, :light_rail, :subway].include?
|
167
|
-
access[:foot] = access[:cycle] || [:footway, :steps].include?(highway.to_sym)
|
168
|
-
access[:horse] = [:track, :unclassified, :bridleway].include?
|
160
|
+
access[:cycle] = [:primary, :secondary, :tertiary, :unclassified, :minor, :cycleway,
|
161
|
+
:residential, :track, :service].include?(highway.to_sym)
|
162
|
+
|
163
|
+
access[:car] = [:motorway, :trunk, :primary, :secondary, :tertiary,
|
164
|
+
:unclassified, :minor, :residential, :service].include?(highway.to_sym)
|
165
|
+
|
166
|
+
access[:train] = [:rail, :light_rail, :subway].include?(railway.to_sym)
|
167
|
+
access[:foot] = access[:cycle] || [:footway, :steps, :path].include?(highway.to_sym)
|
168
|
+
access[:horse] = [:track, :unclassified, :bridleway].include?(highway.to_sym)
|
169
169
|
access
|
170
170
|
end
|
171
171
|
|
172
172
|
def store_way(way)
|
173
173
|
tags = way[:tags]
|
174
|
-
|
174
|
+
|
175
175
|
highway = equivalent tags.fetch(:highway, "")
|
176
176
|
railway = equivalent tags.fetch(:railway, "")
|
177
177
|
oneway = tags.fetch(:oneway, "")
|
178
178
|
reversible = !['yes','true','1'].include?(oneway)
|
179
|
-
|
179
|
+
|
180
180
|
access = way_access highway, railway
|
181
|
-
|
181
|
+
|
182
182
|
# Store routing information
|
183
183
|
last = -1
|
184
184
|
way[:nodes].each do |node|
|
@@ -188,7 +188,7 @@ module Mormon
|
|
188
188
|
weight = Mormon::Weight.get route_type, highway.to_sym
|
189
189
|
add_link(last, node, route_type, weight)
|
190
190
|
add_link(node, last, route_type, weight) if reversible || route_type == :foot
|
191
|
-
end
|
191
|
+
end
|
192
192
|
end
|
193
193
|
end
|
194
194
|
last = node
|
@@ -207,17 +207,8 @@ module Mormon
|
|
207
207
|
@routing[route_type][fr] = { to => weight }
|
208
208
|
end
|
209
209
|
|
210
|
-
def way_type(tags)
|
211
|
-
# Look for a variety of tags (priority order - first one found is used)
|
212
|
-
[:highway, :railway, :waterway, :natural].each do |type|
|
213
|
-
value = tags.fetch(type, '')
|
214
|
-
return equivalent(value) if value
|
215
|
-
end
|
216
|
-
nil
|
217
|
-
end
|
218
|
-
|
219
210
|
def equivalent(tag)
|
220
|
-
{
|
211
|
+
{
|
221
212
|
primary_link: "primary",
|
222
213
|
trunk: "primary",
|
223
214
|
trunk_link: "primary",
|
@@ -230,7 +221,6 @@ module Mormon
|
|
230
221
|
driveway: "service",
|
231
222
|
pedestrian: "footway",
|
232
223
|
bridleway: "cycleway",
|
233
|
-
track: "cycleway",
|
234
224
|
arcade: "footway",
|
235
225
|
canal: "river",
|
236
226
|
riverbank: "river",
|
@@ -239,8 +229,6 @@ module Mormon
|
|
239
229
|
living_street: "unclassified"
|
240
230
|
}[tag.to_sym] || tag
|
241
231
|
end
|
242
|
-
|
243
232
|
end
|
244
233
|
end
|
245
234
|
end
|
246
|
-
|
data/lib/mormon/osm_router.rb
CHANGED
@@ -23,7 +23,7 @@ module Mormon
|
|
23
23
|
|
24
24
|
lat1, lon1 = node1[:lat], node1[:lon]
|
25
25
|
lat2, lon2 = node2[:lat], node2[:lon]
|
26
|
-
|
26
|
+
|
27
27
|
dlat = lat2 - lat1
|
28
28
|
dlon = lon2 - lon1
|
29
29
|
|
@@ -44,7 +44,7 @@ module Mormon
|
|
44
44
|
end
|
45
45
|
|
46
46
|
closed = [node_start]
|
47
|
-
|
47
|
+
|
48
48
|
# Limit for how long it will search
|
49
49
|
(0..10000).each do
|
50
50
|
next_item = @queue.shift
|
@@ -52,7 +52,7 @@ module Mormon
|
|
52
52
|
|
53
53
|
x = next_item[:node_end]
|
54
54
|
next if closed.include?(x)
|
55
|
-
|
55
|
+
|
56
56
|
# Found the end node - success
|
57
57
|
return ['success', next_item[:nodes]] if x == node_end
|
58
58
|
|
@@ -65,18 +65,18 @@ module Mormon
|
|
65
65
|
|
66
66
|
'gave_up'
|
67
67
|
end
|
68
|
-
|
68
|
+
|
69
69
|
def enqueue(node_start, node_end, node_finish, current_queue, weight = 1)
|
70
70
|
# Add another potential route to the queue
|
71
|
-
|
71
|
+
|
72
72
|
# if already in queue
|
73
73
|
return if @queue.any? { |other| other[:node_end] == node_end }
|
74
74
|
|
75
75
|
distance = distance(node_start, node_end)
|
76
|
-
|
76
|
+
|
77
77
|
return if weight.zero?
|
78
78
|
distance = distance / weight
|
79
|
-
|
79
|
+
|
80
80
|
# Create a hash for all the route's attributes
|
81
81
|
current_distance = current_queue[:distance]
|
82
82
|
nodes = current_queue[:nodes].dup
|
@@ -88,7 +88,7 @@ module Mormon
|
|
88
88
|
nodes: nodes,
|
89
89
|
node_end: node_end
|
90
90
|
}
|
91
|
-
|
91
|
+
|
92
92
|
# Try to insert, keeping the queue ordered by decreasing worst-case distance
|
93
93
|
ix = @queue.find_index { |other| other[:max_distance] > queue_item[:max_distance] } || -1
|
94
94
|
@queue.insert(ix, queue_item)
|
@@ -123,17 +123,17 @@ module Mormon
|
|
123
123
|
if neighbors
|
124
124
|
neighbors = neighbors.keys.map(&:to_i)
|
125
125
|
not_visited = neighbors - (neighbors & visited)
|
126
|
-
|
126
|
+
|
127
127
|
# random sort in order to not take the same order for neighbors every time.
|
128
128
|
not_visited.sort_by { rand }.each do |neighbor|
|
129
129
|
# limit the width of the route go further more than max_distance the distance between start and end
|
130
|
-
next if distance(neighbor, node_end) > max_amplitude
|
130
|
+
next if distance(neighbor, node_end) > max_amplitude
|
131
131
|
current_route << neighbor
|
132
132
|
enqueue neighbor, node_end, transport, current_route, visited, max_amplitude
|
133
133
|
current_route.delete neighbor
|
134
134
|
end
|
135
135
|
end
|
136
|
-
|
136
|
+
|
137
137
|
visited.delete node_start
|
138
138
|
end
|
139
139
|
end
|
@@ -143,21 +143,23 @@ module Mormon
|
|
143
143
|
|
144
144
|
|
145
145
|
class Router
|
146
|
-
attr_reader :loader
|
146
|
+
attr_reader :loader
|
147
147
|
|
148
148
|
def initialize(loader, options = {})
|
149
|
-
algorithm = options.delete(:algorithm) || :astar
|
150
|
-
algorithm_class = "Mormon::OSM::Algorithm::#{algorithm.to_s.capitalize}".constantize
|
151
|
-
|
152
149
|
@loader = loader
|
153
|
-
@
|
150
|
+
@options = options
|
151
|
+
|
152
|
+
algorithm = @options.delete(:algorithm) || :astar
|
153
|
+
@algorithm_class = "Mormon::OSM::Algorithm::#{algorithm.to_s.capitalize}".constantize
|
154
154
|
end
|
155
155
|
|
156
156
|
def find_route(node_start, node_end, transport)
|
157
|
-
|
158
|
-
|
157
|
+
algorithm = @algorithm_class.new(self, @options)
|
158
|
+
|
159
|
+
result, nodes = algorithm.route(node_start.to_i, node_end.to_i, transport.to_sym)
|
160
|
+
|
159
161
|
return [result,[]] if result != 'success'
|
160
|
-
|
162
|
+
|
161
163
|
nodes.map! do |node|
|
162
164
|
data = @loader.nodes[node.to_s]
|
163
165
|
[data[:lat], data[:lon]]
|
@@ -165,7 +167,6 @@ module Mormon
|
|
165
167
|
|
166
168
|
[result, nodes]
|
167
169
|
end
|
168
|
-
|
169
170
|
end
|
170
171
|
end
|
171
|
-
end
|
172
|
+
end
|
data/lib/mormon/version.rb
CHANGED
data/lib/mormon/weight.rb
CHANGED
@@ -15,6 +15,7 @@ module Mormon
|
|
15
15
|
service: { cycle: 1, car: 1, foot: 1, horse: 1 },
|
16
16
|
bridleway: { cycle: 0.8, foot: 1, horse: 10, mtb: 3 },
|
17
17
|
footway: { cycle: 0.2, foot: 1 },
|
18
|
+
path: { foot: 1 },
|
18
19
|
steps: { foot: 1, cycle: 0.3 },
|
19
20
|
rail: { train: 1 },
|
20
21
|
light_rail: { train: 1 },
|
data/mormon.gemspec
CHANGED
@@ -6,8 +6,8 @@ require 'mormon/version'
|
|
6
6
|
Gem::Specification.new do |gem|
|
7
7
|
gem.name = "mormon"
|
8
8
|
gem.version = Mormon::VERSION
|
9
|
-
gem.
|
10
|
-
gem.email =
|
9
|
+
gem.author = "Geronimo Diaz"
|
10
|
+
gem.email = "geronimod@gmail.com"
|
11
11
|
gem.description = %q{ OSM Router }
|
12
12
|
gem.summary = %q{ OSM Routing with some extra features: reset tiles cache, random routes and distance optimizer for routes with several stops. It's based on Pyroute library. }
|
13
13
|
gem.homepage = "https://github.com/geronimod/mormon"
|
@@ -18,8 +18,7 @@ Gem::Specification.new do |gem|
|
|
18
18
|
gem.require_paths = ["lib"]
|
19
19
|
|
20
20
|
gem.rubyforge_project = "mormon"
|
21
|
-
|
21
|
+
|
22
22
|
gem.add_dependency "nokogiri"
|
23
23
|
gem.add_development_dependency "rspec"
|
24
|
-
#gem.add_development_dependency "debugger"
|
25
24
|
end
|
metadata
CHANGED
@@ -1,58 +1,50 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mormon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
5
|
-
prerelease:
|
4
|
+
version: 2.0.3
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Geronimo Diaz
|
9
|
-
|
10
|
-
autorequire:
|
8
|
+
autorequire:
|
11
9
|
bindir: bin
|
12
10
|
cert_chain: []
|
13
|
-
date:
|
11
|
+
date: 2024-07-16 00:00:00.000000000 Z
|
14
12
|
dependencies:
|
15
13
|
- !ruby/object:Gem::Dependency
|
16
14
|
name: nokogiri
|
17
15
|
requirement: !ruby/object:Gem::Requirement
|
18
|
-
none: false
|
19
16
|
requirements:
|
20
|
-
- -
|
17
|
+
- - ">="
|
21
18
|
- !ruby/object:Gem::Version
|
22
19
|
version: '0'
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
none: false
|
27
23
|
requirements:
|
28
|
-
- -
|
24
|
+
- - ">="
|
29
25
|
- !ruby/object:Gem::Version
|
30
26
|
version: '0'
|
31
27
|
- !ruby/object:Gem::Dependency
|
32
28
|
name: rspec
|
33
29
|
requirement: !ruby/object:Gem::Requirement
|
34
|
-
none: false
|
35
30
|
requirements:
|
36
|
-
- -
|
31
|
+
- - ">="
|
37
32
|
- !ruby/object:Gem::Version
|
38
33
|
version: '0'
|
39
34
|
type: :development
|
40
35
|
prerelease: false
|
41
36
|
version_requirements: !ruby/object:Gem::Requirement
|
42
|
-
none: false
|
43
37
|
requirements:
|
44
|
-
- -
|
38
|
+
- - ">="
|
45
39
|
- !ruby/object:Gem::Version
|
46
40
|
version: '0'
|
47
|
-
description:
|
48
|
-
email:
|
49
|
-
- geronimod@gmail.com
|
50
|
-
- john.kolle@gmail.com
|
41
|
+
description: " OSM Router "
|
42
|
+
email: geronimod@gmail.com
|
51
43
|
executables: []
|
52
44
|
extensions: []
|
53
45
|
extra_rdoc_files: []
|
54
46
|
files:
|
55
|
-
- .gitignore
|
47
|
+
- ".gitignore"
|
56
48
|
- Gemfile
|
57
49
|
- Gemfile.lock
|
58
50
|
- LICENSE.txt
|
@@ -79,29 +71,27 @@ files:
|
|
79
71
|
- spec/weight_spec.rb
|
80
72
|
homepage: https://github.com/geronimod/mormon
|
81
73
|
licenses: []
|
82
|
-
|
74
|
+
metadata: {}
|
75
|
+
post_install_message:
|
83
76
|
rdoc_options: []
|
84
77
|
require_paths:
|
85
78
|
- lib
|
86
79
|
required_ruby_version: !ruby/object:Gem::Requirement
|
87
|
-
none: false
|
88
80
|
requirements:
|
89
|
-
- -
|
81
|
+
- - ">="
|
90
82
|
- !ruby/object:Gem::Version
|
91
83
|
version: '0'
|
92
84
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
93
|
-
none: false
|
94
85
|
requirements:
|
95
|
-
- -
|
86
|
+
- - ">="
|
96
87
|
- !ruby/object:Gem::Version
|
97
88
|
version: '0'
|
98
89
|
requirements: []
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
and distance optimizer for routes with several stops. It''s based on Pyroute library.'
|
90
|
+
rubygems_version: 3.0.9
|
91
|
+
signing_key:
|
92
|
+
specification_version: 4
|
93
|
+
summary: 'OSM Routing with some extra features: reset tiles cache, random routes and
|
94
|
+
distance optimizer for routes with several stops. It''s based on Pyroute library.'
|
105
95
|
test_files:
|
106
96
|
- spec/distance_optimizer_spec.rb
|
107
97
|
- spec/loader_spec.rb
|