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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6a9a16f2fa8980f4bd7e84e9912e7925caa556fd2b2daab56209ff8351e93a19
4
- data.tar.gz: 652b0895096c0b55009d669ea1b8416368dec5884b4a395ca4fd46c762836575
3
+ metadata.gz: 32c396f8f9377660da84a4b29d78657e23efcfefe01e6d05368894dd1ffbf07d
4
+ data.tar.gz: 42f3961fb4a896fb3f25c3f113672a0ac8894d74458270bfce2fef82f5e50e11
5
5
  SHA512:
6
- metadata.gz: 3ea8cd7f921ff06aa5e838684d1efb8fcaa48fa3b2601e85ed6f926fecebc9d4bb8831399d5bd0e63cf1a2531231e5d8c71b4e56a3287c9ef0aa602b22726a7f
7
- data.tar.gz: 87bea9a4711300f07b9b6a0151590de265e6c55447a9c1e6ad3b7503b1ffaa45ac5090e1b1859a4786765b1709826519f84876504faac815d7c85282ee1857ed
6
+ metadata.gz: 197ec5fb775f93c61c1207392bb2b0a136c09b61572327d2855b9f0c73bf1dc94f552b6665d842a757c20e06248692001ff013c23407e3bc94ed7a024ca5dbd0
7
+ data.tar.gz: 88c0c3d4106abf305d0ac7a4196a6612f40745bf2632ffadab32673d3fb60f04800a2d4de44027fa9fb4a3c8c03db206881dccc91505fb15e48253e56e85952c
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GtfsStopsClustering
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.2"
5
5
  end
@@ -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='0.0.1'
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 gtfs_stops_clusters(gtfs_urls, epsilon, min_points, names_similarity = 1, stop_config_path = '')
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.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-06 00:00:00.000000000 Z
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
- - visconti373@gmail.com
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.10
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