Class: Geocoder::Result::GeoportailLu
- Inherits:
-
Base
- Object
- Base
- Geocoder::Result::GeoportailLu
show all
- Defined in:
- lib/geocoder/results/geoportail_lu.rb
Instance Attribute Summary
Attributes inherited from Base
#cache_hit, #data
Instance Method Summary
collapse
Methods inherited from Base
#initialize, #latitude, #longitude
Instance Method Details
#address ⇒ Object
10
11
12
|
# File 'lib/geocoder/results/geoportail_lu.rb', line 10
def address
full_address
end
|
#city ⇒ Object
14
15
16
|
# File 'lib/geocoder/results/geoportail_lu.rb', line 14
def city
'locality', detailled_address
end
|
#coordinates ⇒ Object
6
7
8
|
# File 'lib/geocoder/results/geoportail_lu.rb', line 6
def coordinates
geomlonlat['coordinates'].reverse if geolocalized?
end
|
#detailled_address ⇒ Object
50
51
52
|
# File 'lib/geocoder/results/geoportail_lu.rb', line 50
def detailled_address
data['AddressDetails']
end
|
#full_address ⇒ Object
42
43
44
|
# File 'lib/geocoder/results/geoportail_lu.rb', line 42
def full_address
data['address']
end
|
#geomlonlat ⇒ Object
46
47
48
|
# File 'lib/geocoder/results/geoportail_lu.rb', line 46
def geomlonlat
data['geomlonlat']
end
|
#postal_code ⇒ Object
26
27
28
|
# File 'lib/geocoder/results/geoportail_lu.rb', line 26
def postal_code
'zip', detailled_address
end
|
#state ⇒ Object
Also known as:
country, province
18
19
20
|
# File 'lib/geocoder/results/geoportail_lu.rb', line 18
def state
'Luxembourg'
end
|
#state_code ⇒ Object
Also known as:
country_code, province_code
22
23
24
|
# File 'lib/geocoder/results/geoportail_lu.rb', line 22
def state_code
'LU'
end
|
#street ⇒ Object
38
39
40
|
# File 'lib/geocoder/results/geoportail_lu.rb', line 38
def street
'street', detailled_address
end
|
#street_address ⇒ Object
30
31
32
|
# File 'lib/geocoder/results/geoportail_lu.rb', line 30
def street_address
[street_number, street].compact.join(' ')
end
|
#street_number ⇒ Object
34
35
36
|
# File 'lib/geocoder/results/geoportail_lu.rb', line 34
def street_number
'postnumber', detailled_address
end
|