update place type taxonomy
This commit is contained in:
parent
357968c4b1
commit
94f34a8d0e
2 changed files with 11 additions and 13 deletions
|
@ -431,10 +431,9 @@ Ox.ListMap = function(options, self) {
|
||||||
{id: 'region', title: 'Region'},
|
{id: 'region', title: 'Region'},
|
||||||
{id: 'city', title: 'City'},
|
{id: 'city', title: 'City'},
|
||||||
{id: 'borough', title: 'Borough'},
|
{id: 'borough', title: 'Borough'},
|
||||||
{id: 'street', title: 'Street'},
|
{id: 'street', title: 'Street'}, // streets, squares, bridges, tunnels, ...
|
||||||
{id: 'premise', title: 'Premise'},
|
{id: 'building', title: 'Building'},
|
||||||
{id: 'feature', title: 'Feature'},
|
{id: 'feature', title: 'Feature'} // continents, islands, rivers, lakes, seas, oceans, ...
|
||||||
{id: 'other', title: 'Other'}
|
|
||||||
],
|
],
|
||||||
label: 'Type',
|
label: 'Type',
|
||||||
labelWidth: 64,
|
labelWidth: 64,
|
||||||
|
|
|
@ -892,20 +892,19 @@ Ox.Map = function(options, self) {
|
||||||
// see http://code.google.com/apis/maps/documentation/javascript/services.html#GeocodingAddressTypes
|
// see http://code.google.com/apis/maps/documentation/javascript/services.html#GeocodingAddressTypes
|
||||||
var strings = {
|
var strings = {
|
||||||
'country': ['country'],
|
'country': ['country'],
|
||||||
'region': ['administrative_area'],
|
'region': ['administrative_area', 'colloqual_area'],
|
||||||
'city': ['locality'],
|
'city': ['locality'],
|
||||||
'borough': ['neighborhood', 'sublocality'],
|
'borough': ['neighborhood', 'postal_code', 'sublocality'],
|
||||||
'street': [
|
'street': [
|
||||||
'intersection', 'route',
|
'intersection', 'route',
|
||||||
'street_address', 'street_number'
|
'street_address', 'street_number'
|
||||||
],
|
],
|
||||||
'premise': [
|
'building': [
|
||||||
'airport', 'establishment', 'park',
|
'airport', 'establishment', 'floor',
|
||||||
'premise', 'subpremise'
|
'premise', 'room', 'subpremise'
|
||||||
],
|
]
|
||||||
'feature': ['natural_feature']
|
|
||||||
},
|
},
|
||||||
type = 'other';
|
type = 'feature';
|
||||||
Ox.forEach(strings, function(values, key) {
|
Ox.forEach(strings, function(values, key) {
|
||||||
Ox.forEach(values, function(value) {
|
Ox.forEach(values, function(value) {
|
||||||
if (find(value)) {
|
if (find(value)) {
|
||||||
|
@ -913,7 +912,7 @@ Ox.Map = function(options, self) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return type == 'other';
|
return type == 'feature';
|
||||||
});
|
});
|
||||||
return type;
|
return type;
|
||||||
function find(type) {
|
function find(type) {
|
||||||
|
|
Loading…
Reference in a new issue