liza 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +17 -7
- data/lib/liza/normalizer.rb +1 -0
- data/lib/liza/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a70cfed3670875ff9afbec4202770016d0a9d5780cf756e1afe8c7c537248389
|
4
|
+
data.tar.gz: 594470f35a12924701611ffefa0c0fb0625d36acbe73c5a2c8f191252d25aa9d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9034ff15704e0dff043f78ee5417e22a110499de4f589a354d92be525e928d20ba97eecf0ee08c9fc25d9da26551dd96c22e07e7e2e28f58da45df25de946cf8
|
7
|
+
data.tar.gz: 71969f4d1c0a8af7b91f950251f415fc2a4e6d75cbe5859689cb221d1d3b88ccf97643fb08c0e8df8b6d30ef5161265481e779ffb297be222cd863c1722e2658
|
data/README.md
CHANGED
@@ -1,15 +1,13 @@
|
|
1
1
|
# Liza
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
3
|
+
Liza is a ruby wrapper around USIG's Normalizador de Direcciones.
|
6
4
|
|
7
5
|
## Installation
|
8
6
|
|
9
7
|
Add this line to your application's Gemfile:
|
10
8
|
|
11
9
|
```ruby
|
12
|
-
gem
|
10
|
+
gem "liza"
|
13
11
|
```
|
14
12
|
|
15
13
|
And then execute:
|
@@ -22,7 +20,19 @@ Or install it yourself as:
|
|
22
20
|
|
23
21
|
## Usage
|
24
22
|
|
25
|
-
|
23
|
+
```ruby
|
24
|
+
>> Liza.normalize("Cabildo y General Paz")
|
25
|
+
=> #<Liza::Normalizer:0x00007f8c5fc0e278 @address="Cabildo y General Paz", @results=[#<Liza::Address:0x00007f8c5e930200 @number=nil, @coordinates=[-34.539371, -58.475488], @normalized_address="CABILDO AV. y PAZ, GRAL. AV., CABA", @street="CABILDO AV.", @crossing_street="PAZ, GRAL. AV.", @locality="CABA", @area="CABA">, #<Liza::Address:0x00007f8c5e9300c0 @number=nil, @coordinates=[-34.6624167, -58.783164], @normalized_address="Cabildo y General José María Paz, Moreno", @street="Cabildo", @crossing_street="General José María Paz", @locality="Moreno", @area="Moreno">]>
|
26
|
+
|
27
|
+
>> melo = Liza.normalize("Melo 1900")
|
28
|
+
=> #<Liza::Normalizer:0x00007f8c5f0e1a08 @address="melo 1900", @results=[#<Liza::Address:0x00007f8c60866f98 @number=1900, @coordinates=[-34.59189, -58.393853], @normalized_address="PACHECO DE MELO, JOSE ANDRES 1900, CABA", @street="PACHECO DE MELO, JOSE ANDRES", @crossing_street="", @locality="CABA", @area="CABA">, #<Liza::Address:0x00007f8c60866ed0 @number=1900, @coordinates=[-34.531806, -58.4850294], @normalized_address="Melo 1900, Vicente López", @street="Melo", @crossing_street="", @locality="Florida", @area="Vicente López">]>
|
29
|
+
|
30
|
+
>> melo.suggestions
|
31
|
+
=> ["PACHECO DE MELO, JOSE ANDRES 1900, CABA", "Melo 1900, Vicente López"]
|
32
|
+
|
33
|
+
>> melo.map(&:map_url)
|
34
|
+
=> ["https://www.google.com/maps/search/-34.59189,-58.393853", "https://www.google.com/maps/search/-34.531806,-58.4850294"]
|
35
|
+
```
|
26
36
|
|
27
37
|
## Development
|
28
38
|
|
@@ -32,7 +42,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
32
42
|
|
33
43
|
## Contributing
|
34
44
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
45
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/arzezak/liza. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
36
46
|
|
37
47
|
## License
|
38
48
|
|
@@ -40,4 +50,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
40
50
|
|
41
51
|
## Code of Conduct
|
42
52
|
|
43
|
-
Everyone interacting in the Liza project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/
|
53
|
+
Everyone interacting in the Liza project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/arzezak/liza/blob/master/CODE_OF_CONDUCT.md).
|
data/lib/liza/normalizer.rb
CHANGED
data/lib/liza/version.rb
CHANGED