pelias-leaflet-plugin
Version:
Add Pelias geocoding to your Leaflet map.
242 lines (241 loc) • 6.31 kB
JSON
{
"geocoding": {
"version": "0.1",
"attribution": "https://search.mapzen.com/v1/attribution",
"query": {
"text": "new york",
"size": 10,
"private": false,
"focus.point.lat": 40.725925340669626,
"focus.point.lon": -73.98073196411133
},
"engine": {
"name": "Pelias",
"author": "Mapzen",
"version": "1.0"
},
"timestamp": 1449699858273
},
"type": "FeatureCollection",
"features": [{
"type": "Feature",
"properties": {
"id": "5128638",
"gid": "gn:region:5128638",
"layer": "region",
"source": "gn",
"name": "New York",
"country_a": "USA",
"country": "United States",
"region": "New York",
"region_a": "NY",
"confidence": 0.942,
"distance": 282.347,
"label": "New York, NY"
},
"geometry": {
"type": "Point",
"coordinates": [-75.4999, 43.00035]
}
}, {
"type": "Feature",
"properties": {
"id": "5128581",
"gid": "gn:locality:5128581",
"layer": "locality",
"source": "gn",
"name": "New York City",
"country_a": "USA",
"country": "United States",
"region": "New York",
"region_a": "NY",
"county": "New York County",
"localadmin": "Manhattan",
"locality": "New York",
"confidence": 0.88,
"distance": 2.494,
"label": "New York City, Manhattan, NY"
},
"geometry": {
"type": "Point",
"coordinates": [-74.00597, 40.71427]
}
}, {
"type": "Feature",
"properties": {
"id": "7163824",
"gid": "gn:neighbourhood:7163824",
"layer": "neighbourhood",
"source": "gn",
"name": "City of New York",
"country_a": "USA",
"country": "United States",
"region": "New York",
"region_a": "NY",
"county": "Kings County",
"localadmin": "Brooklyn",
"locality": "New York",
"neighbourhood": "Wingate",
"confidence": 0.88,
"distance": 7.764,
"label": "City of New York, Brooklyn, NY"
},
"geometry": {
"type": "Point",
"coordinates": [-73.93827, 40.66393]
}
}, {
"type": "Feature",
"properties": {
"id": "5128594",
"gid": "gn:county:5128594",
"layer": "venue",
"source": "gn",
"name": "New York County",
"country_a": "USA",
"country": "United States",
"region": "New York",
"region_a": "NY",
"county": "New York County",
"confidence": 0.672,
"distance": 5.447,
"label": "New York County, NY"
},
"geometry": {
"type": "Point",
"coordinates": [-73.96981, 40.77427]
}
}, {
"type": "Feature",
"properties": {
"id": "4620:adm1:us:usa:new_york",
"gid": "qs:region:4620:adm1:us:usa:new_york",
"layer": "region",
"source": "qs",
"name": "New York",
"country_a": "USA",
"country": "United States",
"region": "New York",
"region_a": "NY",
"confidence": 0.726,
"distance": 278.328,
"label": "New York, NY"
},
"geometry": {
"type": "Point",
"coordinates": [-75.5965380262893, 42.9212264452746]
}
}, {
"type": "Feature",
"properties": {
"id": "5115985",
"gid": "gn:neighbourhood:5115985",
"layer": "neighbourhood",
"source": "gn",
"name": "East New York",
"country_a": "USA",
"country": "United States",
"region": "New York",
"region_a": "NY",
"county": "Kings County",
"localadmin": "Brooklyn",
"locality": "New York",
"confidence": 0.66,
"distance": 10.596,
"label": "East New York, Brooklyn, NY"
},
"geometry": {
"type": "Point",
"coordinates": [-73.88236, 40.66677]
}
}, {
"type": "Feature",
"properties": {
"id": "14767:adm2:us:usa:new_york_county",
"gid": "qs:county:14767:adm2:us:usa:new_york_county",
"layer": "county",
"source": "qs",
"name": "New York County",
"country_a": "USA",
"country": "United States",
"region": "New York",
"region_a": "NY",
"county": "New York County",
"confidence": 0.66,
"distance": 5.448,
"label": "New York County, NY"
},
"geometry": {
"type": "Point",
"coordinates": [-73.9698112681886, 40.7742725323615]
}
}, {
"type": "Feature",
"properties": {
"id": "5106292",
"gid": "gn:locality:5106292",
"layer": "locality",
"source": "gn",
"name": "West New York",
"country_a": "USA",
"country": "United States",
"region": "New Jersey",
"region_a": "NJ",
"county": "Hudson County",
"localadmin": "West New York",
"locality": "West New York",
"confidence": 0.654,
"distance": 7.441,
"label": "West New York, Hudson County, NJ"
},
"geometry": {
"type": "Point",
"coordinates": [-74.01431, 40.78788]
}
}, {
"type": "Feature",
"properties": {
"id": "cb5add8f72ca4a82b61dfacde485fcbb",
"gid": "oa:address:cb5add8f72ca4a82b61dfacde485fcbb",
"layer": "address",
"source": "oa",
"name": "30 West 26th Street",
"housenumber": "30",
"street": "West 26th Street",
"country_a": "USA",
"country": "United States",
"region": "California",
"region_a": "CA",
"county": "Merced County",
"locality": "Merced",
"confidence": 0.67,
"label": "30 West 26th Street, Merced, CA"
},
"geometry": {
"type": "Point",
"coordinates": [-120.471512, 37.307614]
}
}, {
"type": "Feature",
"properties": {
"id": "16829:locality:us:usa:new_york",
"gid": "qs:locality:16829:locality:us:usa:new_york",
"layer": "locality",
"source": "qs",
"name": "New York",
"country_a": "USA",
"country": "United States",
"region": "New York",
"region_a": "NY",
"county": "Kings County",
"confidence": 0.706,
"distance": 7.764,
"label": "New York, Kings County, NY"
},
"geometry": {
"type": "Point",
"coordinates": [-73.9382709905741, 40.6639270805784]
}
}],
"bbox": [-75.5965380262893, 40.6639270805784, -73.88236, 43.00035]
}