gtfs_stops_clustering 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gtfs_stops_clustering/version.rb +1 -1
- data/lib/gtfs_stops_clustering.rb +6 -3
- metadata +23 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32c396f8f9377660da84a4b29d78657e23efcfefe01e6d05368894dd1ffbf07d
|
4
|
+
data.tar.gz: 42f3961fb4a896fb3f25c3f113672a0ac8894d74458270bfce2fef82f5e50e11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 197ec5fb775f93c61c1207392bb2b0a136c09b61572327d2855b9f0c73bf1dc94f552b6665d842a757c20e06248692001ff013c23407e3bc94ed7a024ca5dbd0
|
7
|
+
data.tar.gz: 88c0c3d4106abf305d0ac7a4196a6612f40745bf2632ffadab32673d3fb60f04800a2d4de44027fa9fb4a3c8c03db206881dccc91505fb15e48253e56e85952c
|
@@ -1,12 +1,15 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
1
2
|
# lib/gtfs_stops_clustering.rb
|
2
|
-
|
3
|
+
require 'rubygems'
|
4
|
+
require 'bundler/setup'
|
5
|
+
require_relative "gtfs_stops_clustering/version"
|
3
6
|
require 'gtfs'
|
4
7
|
require 'csv'
|
5
8
|
require_relative './gtfs_stops_clustering/data_import'
|
6
9
|
require_relative './gtfs_stops_clustering/dbscan'
|
7
10
|
|
8
11
|
module GtfsStopsClustering
|
9
|
-
VERSION=
|
12
|
+
VERSION = GtfsStopsClustering::VERSION
|
10
13
|
attr_accessor :gtfs_stops_clustering
|
11
14
|
|
12
15
|
class GtfsStopsClustering
|
@@ -60,7 +63,7 @@ module GtfsStopsClustering
|
|
60
63
|
end
|
61
64
|
end
|
62
65
|
|
63
|
-
def
|
66
|
+
def build(gtfs_urls, epsilon, min_points, names_similarity = 1, stop_config_path = '')
|
64
67
|
@gtfs_stops_clustering = GtfsStopsClustering.new(gtfs_urls, epsilon, min_points, names_similarity, stop_config_path)
|
65
68
|
@gtfs_stops_clustering.clusters
|
66
69
|
end
|
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gtfs_stops_clustering
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Visco01
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-12-
|
11
|
+
date: 2023-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: gtfs
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.4.1
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.4.1
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: distance_measures
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -104,24 +118,10 @@ dependencies:
|
|
104
118
|
- - ">="
|
105
119
|
- !ruby/object:Gem::Version
|
106
120
|
version: 5.0.8
|
107
|
-
- !ruby/object:Gem::Dependency
|
108
|
-
name: gtfs
|
109
|
-
requirement: !ruby/object:Gem::Requirement
|
110
|
-
requirements:
|
111
|
-
- - "~>"
|
112
|
-
- !ruby/object:Gem::Version
|
113
|
-
version: 0.4.1
|
114
|
-
type: :runtime
|
115
|
-
prerelease: false
|
116
|
-
version_requirements: !ruby/object:Gem::Requirement
|
117
|
-
requirements:
|
118
|
-
- - "~>"
|
119
|
-
- !ruby/object:Gem::Version
|
120
|
-
version: 0.4.1
|
121
121
|
description: A gem to read GTFS stops data and create clusters based on coordinates
|
122
122
|
and stop names' similarities.
|
123
123
|
email:
|
124
|
-
-
|
124
|
+
- pietro.visconti2001@gmail.com
|
125
125
|
executables: []
|
126
126
|
extensions: []
|
127
127
|
extra_rdoc_files: []
|
@@ -131,10 +131,13 @@ files:
|
|
131
131
|
- lib/gtfs_stops_clustering/dbscan.rb
|
132
132
|
- lib/gtfs_stops_clustering/redis_geodata.rb
|
133
133
|
- lib/gtfs_stops_clustering/version.rb
|
134
|
-
homepage:
|
134
|
+
homepage: https://github.com/Visco01/gtfs_stops_clustering
|
135
135
|
licenses:
|
136
136
|
- MIT
|
137
|
-
metadata:
|
137
|
+
metadata:
|
138
|
+
homepage_uri: https://github.com/Visco01/gtfs_stops_clustering
|
139
|
+
source_code_uri: https://github.com/Visco01/gtfs_stops_clustering
|
140
|
+
changelog_uri: https://github.com/Visco01/gtfs_stops_clustering/blob/main/CHANGELOG.md
|
138
141
|
post_install_message:
|
139
142
|
rdoc_options: []
|
140
143
|
require_paths:
|
@@ -150,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
150
153
|
- !ruby/object:Gem::Version
|
151
154
|
version: '0'
|
152
155
|
requirements: []
|
153
|
-
rubygems_version: 3.4.
|
156
|
+
rubygems_version: 3.4.22
|
154
157
|
signing_key:
|
155
158
|
specification_version: 4
|
156
159
|
summary: A gem to read GTFS stops data and create clusters based on coordinates and
|