lat = place.attributes["lat"].to_s
lon = place.attributes["lon"].to_s
klass = place.attributes["class"].to_s
- type = place.attributes["type"].to_s.gsub("_", " ")
+ type = place.attributes["type"].to_s
name = place.attributes["display_name"].to_s
min_lat,max_lat,min_lon,max_lon = place.attributes["boundingbox"].to_s.split(",")
-
- if klass == "highway" and ["trunk","primary","secondary","tertiary","unclassified","residential"].include?(type)
- prefix = t 'geocoder.search_osm_nominatim.prefix_highway', :type => type.capitalize
- else
- prefix = t 'geocoder.search_osm_nominatim.prefix_other', :type => type.capitalize
- end
+ prefix = t "geocoder.search_osm_nominatim.prefix_#{type}", :default => type.gsub("_", " ").capitalize
@results.push({:lat => lat, :lon => lon,
:min_lat => min_lat, :max_lat => max_lat,
search_osm_namefinder:
suffix_parent: "{{suffix}} ({{parentdistance}} {{parentdirection}} van {{parentname}})"
suffix_place: ", {{distance}} {{direction}} van {{placename}}"
- search_osm_nominatim:
- prefix_highway: Pad van tipe {{type}}
javascripts:
map:
base:
search_osm_namefinder:
suffix_parent: "{{suffix}} ({{parentdistance}} {{parentdirection}} eus {{parentname}})"
suffix_place: " {{distance}} {{direction}} diouzh {{placename}}"
- search_osm_nominatim:
- prefix_highway: hent {{type}}
javascripts:
map:
base:
search_osm_namefinder:
suffix_parent: "{{suffix}} ({{parentdistance}} {{parentdirection}} von {{parentname}})"
suffix_place: ", {{distance}} {{direction}} von {{placename}}"
- search_osm_nominatim:
- prefix_highway: "{{type}} Straße"
javascripts:
map:
base:
search_osm_namefinder:
suffix_parent: "{{suffix}} ({{parentdistance}} {{parentdirection}} wót {{parentname}})"
suffix_place: ", {{distance}} {{direction}} wót {{placename}}"
- search_osm_nominatim:
- prefix_highway: Droga typa {{type}}
javascripts:
map:
base:
suffix_parent: "{{suffix}} ({{parentdistance}} {{parentdirection}} of {{parentname}})"
suffix_suburb: "{{suffix}}, {{parentname}}"
search_osm_nominatim:
- prefix_highway: "{{type}} road"
- prefix_other: "{{type}}"
+ prefix_motorway: "Motorway"
+ prefix_trunk: "Trunk road"
+ prefix_primary: "Primary road"
+ prefix_secondary: "Secondary road"
+ prefix_tertiary: "Tertiary road"
+ prefix_unclassified: "Unclassified road"
+ prefix_residential: "Residential road"
+ prefix_city: "City"
+ prefix_town: "Town"
+ prefix_suburb: "Suburb"
+ prefix_village: "Village"
+ prefix_hamlet: "Hamlet"
+ prefix_station: "Station"
description:
title:
osm_namefinder: '{{types}} from <a href="http://gazetteer.openstreetmap.org/namefinder/">OpenStreetMap Namefinder</a>'
search_osm_namefinder:
suffix_parent: "{{suffix}} ({{parentdistance}} {{parentdirection}} de {{parentname}})"
suffix_place: ", {{distance}} {{direction}} de {{placename}}"
- search_osm_nominatim:
- prefix_highway: "{{type}} vojo"
layouts:
donate: Subtenu OpenStreetMap {{link}} al Fonduso de Ĝisdatigo de Aparataro.
donate_link_text: donacante
search_osm_namefinder:
suffix_parent: "{{suffix}} ({{parentdistance}} {{parentdirection}} de {{parentname}})"
suffix_place: ", {{distance}} {{direction}} de {{placename}}"
- search_osm_nominatim:
- prefix_highway: vía {{type}}
javascripts:
map:
base:
search_osm_namefinder:
suffix_parent: "{{suffix}} ({{parentdistance}} {{parentdirection}} de {{parentname}})"
suffix_place: ", {{distance}} {{direction}} de {{placename}}"
- search_osm_nominatim:
- prefix_highway: route {{type}}
javascripts:
map:
base:
search_osm_namefinder:
suffix_parent: "{{suffix}} ({{parentdistance}} {{parentdirection}} od {{parentname}})"
suffix_place: ", {{distance}} {{direction}} od {{placename}}"
- search_osm_nominatim:
- prefix_highway: "{{type}} cesta"
javascripts:
map:
base:
search_osm_namefinder:
suffix_parent: "{{suffix}} ({{parentdistance}} {{parentdirection}} wot {{parentname}})"
suffix_place: ", {{distance}} {{direction}} z {{placename}}"
- search_osm_nominatim:
- prefix_highway: Dróha typa {{type}}
javascripts:
map:
base:
suffix_parent: "{{suffix}} ({{parentdistance}}-re {{parentdirection}} innen: {{parentname}})"
suffix_place: " {{distance}}-re {{direction}} innen: {{placename}}"
suffix_suburb: "{{suffix}} ({{parentname}})"
- search_osm_nominatim:
- prefix_highway: "{{type}} út"
javascripts:
map:
base:
search_osm_namefinder:
suffix_parent: "{{suffix}} ({{parentdistance}} al {{parentdirection}} de {{parentname}})"
suffix_place: ", {{distance}} al {{direction}} de {{placename}}"
- search_osm_nominatim:
- prefix_highway: cammino {{type}}
javascripts:
map:
base:
search_osm_namefinder:
suffix_parent: "{{suffix}} ({{parentdistance}} {{parentdirection}} af {{parentname}})"
suffix_place: ", {{distance}} {{direction}} af {{placename}}"
- search_osm_nominatim:
- prefix_highway: "{{type}} vegur"
javascripts:
map:
base:
search_osm_namefinder:
suffix_parent: "{{suffix}} ({{parentdistance}} {{parentdirection}} од {{parentname}})"
suffix_place: ", {{distance}} {{direction}} од {{placename}}"
- search_osm_nominatim:
- prefix_highway: "{{type}} пат"
javascripts:
map:
base:
search_osm_namefinder:
suffix_parent: "{{suffix}} ({{parentdistance}} {{parentdirection}} von {{parentname}})"
suffix_place: ", {{distance}} {{direction}} von {{placename}}"
- search_osm_nominatim:
- prefix_highway: Straat von’n Typ {{type}}
javascripts:
map:
base:
search_osm_namefinder:
suffix_parent: "{{suffix}} ({{parentdistance}} {{parentdirection}} van {{parentname}})"
suffix_place: ", {{distance}} {{direction}} van {{placename}}"
- search_osm_nominatim:
- prefix_highway: Weg van type {{type}}
javascripts:
map:
base:
search_osm_namefinder:
suffix_parent: "{{suffix}} ({{parentdistance}} {{parentdirection}} względem {{parentname}})"
suffix_place: ", {{distance}} {{direction}} względem {{placename}}"
- search_osm_nominatim:
- prefix_highway: droga {{type}}
layouts:
donate: Wspomóż Projekt OpenStreetMap {{link}} na Konto Aktualizacji Naszego Sprzętu.
donate_link_text: dokonując darowizny
suffix_parent: "{{suffix}} ({{parentdistance}} {{parentdirection}} de {{parentname}})"
suffix_place: ", {{distance}} {{direction}} de {{placename}}"
suffix_suburb: "{{suffix}}, {{parentname}}"
- search_osm_nominatim:
- prefix_highway: via {{type}}
- prefix_other: "{{type}}"
javascripts:
map:
base:
search_osm_namefinder:
suffix_parent: "{{suffix}} ({{parentdistance}} {{parentdirection}} {{parentname}})"
suffix_place: ", {{distance}} {{direction}} {{placename}}"
- search_osm_nominatim:
- prefix_highway: "{{type}} дорога"
javascripts:
map:
base:
ca_postcode: <a href="http://geocoder.ca/">Geocoder.CA</a> నుండి ఫలితాలు
geonames: <a href="http://www.geonames.org/">GeoNames</a> నుండి ఫలితాలు
us_postcode: <a href="http://geocoder.us/">Geocoder.us</a> నుండి ఫలితాలు
- search_osm_nominatim:
- prefix_highway: "{{type}} రహదారి"
javascripts:
map:
base:
search_osm_namefinder:
suffix_parent: "{{suffix}} ({{parentdistance}} về phía {{parentdirection}} của {{parentname}})"
suffix_place: ", {{distance}} về phía {{direction}} của {{placename}}"
- search_osm_nominatim:
- prefix_highway: Đường {{type}}
javascripts:
map:
base: