maptp-service 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +2 -2
- data/lib/maptp-service.rb +1 -1
- data/lib/maptp-service/parser/geocoding_result.rb +4 -3
- metadata +3 -3
data/README.rdoc
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
== FINALLY, A RUBY CLIENT FOR MAP TP!
|
4
4
|
|
5
|
-
Repository: http://github.com/
|
5
|
+
Repository: http://github.com/fabrik42/maptp-service
|
6
6
|
|
7
7
|
Gem: http://rubygems.org/gems/maptp-service
|
8
8
|
|
9
|
-
Bug Tracker: http://github.com/
|
9
|
+
Bug Tracker: http://github.com/fabrik42/maptp-service/issues
|
10
10
|
|
11
11
|
== DESCRIPTION:
|
12
12
|
|
data/lib/maptp-service.rb
CHANGED
@@ -27,12 +27,13 @@ module MapTP
|
|
27
27
|
|
28
28
|
results = resp[:search_free_response][:map_search_response][:alternatives][:item]
|
29
29
|
|
30
|
-
# Return empty array if no results are returned
|
31
|
-
return { :results => [], :ERROR => "No match found" } unless results
|
32
30
|
|
33
31
|
output = Hash.new
|
34
32
|
|
35
|
-
output[:results] = Array.new
|
33
|
+
output[:results] = Array.new
|
34
|
+
|
35
|
+
# Return empty array if no results are returned
|
36
|
+
return output unless results
|
36
37
|
|
37
38
|
results.each do |result|
|
38
39
|
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 3
|
9
|
+
version: 0.0.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- "Christian B\xC3\xA4uerlein"
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-10-21 00:00:00 +02:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|