forked from tykayn/osm_my_commerce
feat(search): also on osm api
parent
ef62875a57
commit
97b76c7f35
@ -1,72 +1,109 @@
|
||||
// example response
|
||||
export default {
|
||||
source: 'SIRENE / INSEE',
|
||||
derniere_maj: '2020-10-01',
|
||||
licence: 'Licence Ouverte 2.0',
|
||||
nb_resultats: 1,
|
||||
type: 'Featurecollection',
|
||||
type: 'FeatureCollection',
|
||||
version: 'draft',
|
||||
features: [
|
||||
{
|
||||
type: 'Feature',
|
||||
geometry: {
|
||||
type: 'Point',
|
||||
coordinates: [2.2930286, 48.8599019],
|
||||
},
|
||||
properties: {
|
||||
label: 'Tour-Eiffel (Terminal de ferry) Paris',
|
||||
score: 0.8272727272727273,
|
||||
id: 'https://osm.org/node/4532598850',
|
||||
type: 'poi',
|
||||
poi: 'ferry_terminal',
|
||||
name: 'Tour-Eiffel (Terminal de ferry)',
|
||||
city: 'Paris',
|
||||
citycode: '75056',
|
||||
context: 'Paris, Île-de-France',
|
||||
importance: 0.1,
|
||||
},
|
||||
},
|
||||
{
|
||||
type: 'Feature',
|
||||
geometry: {
|
||||
type: 'Point',
|
||||
coordinates: [2.294499, 48.8582609],
|
||||
},
|
||||
properties: {
|
||||
label: 'Tour Eiffel (Patrimoine national) Paris',
|
||||
score: 0.8256748866716437,
|
||||
id: 'https://osm.org/way/5013364',
|
||||
type: 'poi',
|
||||
poi: '3',
|
||||
name: 'Tour Eiffel (Patrimoine national)',
|
||||
city: 'Paris',
|
||||
citycode: '75056',
|
||||
context: 'Paris, Île-de-France',
|
||||
importance: 0.08242375338808132,
|
||||
},
|
||||
},
|
||||
{
|
||||
type: 'Feature',
|
||||
geometry: {
|
||||
type: 'Point',
|
||||
coordinates: [2.2944981, 48.8582612],
|
||||
},
|
||||
properties: {
|
||||
label: 'Tour Eiffel 2e étage (Point de vue) Paris',
|
||||
score: 0.8234125145631099,
|
||||
id: 'https://osm.org/relation/4114842',
|
||||
type: 'poi',
|
||||
poi: 'viewpoint',
|
||||
name: 'Tour Eiffel 2e étage (Point de vue)',
|
||||
city: 'Paris',
|
||||
citycode: '75056',
|
||||
context: 'Paris, Île-de-France',
|
||||
importance: 0.05753766019421038,
|
||||
},
|
||||
},
|
||||
{
|
||||
type: 'Feature',
|
||||
geometry: {
|
||||
type: 'Point',
|
||||
coordinates: [2.294497, 48.858262],
|
||||
},
|
||||
properties: {
|
||||
name: "L'AROME",
|
||||
context: '17 Rue du Docteur Babin 91470 Forges-les-Bains',
|
||||
siren: '803240084',
|
||||
nic: '00019',
|
||||
siret: '80324008400019',
|
||||
statutdiffusionetablissement: 'O',
|
||||
datecreationetablissement: '2014-07-02',
|
||||
trancheeffectifsetablissement: '03',
|
||||
anneeeffectifsetablissement: '2018',
|
||||
datederniertraitementetablissement: '2020-08-25T11:13:11',
|
||||
etablissementsiege: 'true',
|
||||
nombreperiodesetablissement: '2',
|
||||
numerovoieetablissement: '17',
|
||||
typevoieetablissement: 'RUE',
|
||||
libellevoieetablissement: 'DU DOCTEUR BABIN',
|
||||
codepostaletablissement: '91470',
|
||||
libellecommuneetablissement: 'FORGES-LES-BAINS',
|
||||
codecommuneetablissement: '91249',
|
||||
datedebut: '2018-09-01',
|
||||
etatadministratifetablissement: 'A',
|
||||
enseigne1etablissement: "L'AROME",
|
||||
denominationusuelleetablissement: "L'AROME",
|
||||
activiteprincipaleetablissement: '56.10A',
|
||||
nomenclatureactiviteprincipaleetablissement: 'NAFRev2',
|
||||
caractereemployeuretablissement: 'O',
|
||||
longitude: 2.101847,
|
||||
latitude: 48.627719,
|
||||
geo_score: 0.94,
|
||||
geo_type: 'housenumber',
|
||||
geo_adresse: '17 Rue du Docteur Babin 91470 Forges-les-Bains',
|
||||
geo_id: '91249_0130_00017',
|
||||
geo_ligne: 'G',
|
||||
geo_l4: '17 RUE DU DOCTEUR BABIN',
|
||||
geom: {
|
||||
type: 'Point',
|
||||
coordinates: [2.101847, 48.627719],
|
||||
},
|
||||
statutdiffusionunitelegale: 'O',
|
||||
datecreationunitelegale: '2014-07-02',
|
||||
trancheeffectifsunitelegale: '03',
|
||||
anneeeffectifsunitelegale: '2018',
|
||||
datederniertraitementunitelegale: '2020-08-25T11:13:11',
|
||||
nombreperiodesunitelegale: '3',
|
||||
categorieentreprise: 'PME',
|
||||
anneecategorieentreprise: '2018',
|
||||
etatadministratifunitelegale: 'A',
|
||||
denominationunitelegale: 'FURCIA',
|
||||
categoriejuridiqueunitelegale: '5710',
|
||||
activiteprincipaleunitelegale: '56.10A',
|
||||
nomenclatureactiviteprincipaleunitelegale: 'NAFRev2',
|
||||
nicsiegeunitelegale: '00019',
|
||||
economiesocialesolidaireunitelegale: 'N',
|
||||
caractereemployeurunitelegale: 'O',
|
||||
label: 'Tour Eiffel 3e étage (Point de vue) Paris',
|
||||
score: 0.8230710683162721,
|
||||
id: 'https://osm.org/relation/4114841',
|
||||
type: 'poi',
|
||||
poi: 'viewpoint',
|
||||
name: 'Tour Eiffel 3e étage (Point de vue)',
|
||||
city: 'Paris',
|
||||
citycode: '75056',
|
||||
context: 'Paris, Île-de-France',
|
||||
importance: 0.053781751478993375,
|
||||
},
|
||||
},
|
||||
{
|
||||
type: 'Feature',
|
||||
geometry: {
|
||||
type: 'Point',
|
||||
coordinates: [2.101847, 48.627719],
|
||||
coordinates: [7.1975933, 47.9235422],
|
||||
},
|
||||
properties: {
|
||||
label: "Tour Eiffel miniature (Œuvre d'art) Buhl",
|
||||
score: 0.8227272727272726,
|
||||
id: 'https://osm.org/node/6511604415',
|
||||
type: 'poi',
|
||||
poi: 'artwork',
|
||||
name: "Tour Eiffel miniature (Œuvre d'art)",
|
||||
city: 'Buhl',
|
||||
citycode: '68058',
|
||||
context: 'Haut-Rhin, Grand Est',
|
||||
importance: 0.05,
|
||||
},
|
||||
},
|
||||
],
|
||||
attribution: 'BANO+OSM POI',
|
||||
licence: 'ODbL 1.0',
|
||||
query: 'tour eiffel',
|
||||
filters: {
|
||||
type: 'poi',
|
||||
},
|
||||
limit: 5,
|
||||
}
|
||||
|
@ -0,0 +1,33 @@
|
||||
export default {
|
||||
version: '0.6',
|
||||
generator: 'CGImap 0.8.3 (1572842 spike-08.openstreetmap.org)',
|
||||
copyright: 'OpenStreetMap and contributors',
|
||||
attribution: 'http://www.openstreetmap.org/copyright',
|
||||
license: 'http://opendatacommons.org/licenses/odbl/1-0/',
|
||||
elements: [
|
||||
{
|
||||
type: 'node',
|
||||
id: 1801503207,
|
||||
lat: 48.8429112,
|
||||
lon: 2.3235502,
|
||||
timestamp: '2018-10-23T19:35:44Z',
|
||||
version: 4,
|
||||
changeset: 63808506,
|
||||
user: 'tiguillom',
|
||||
uid: 704748,
|
||||
tags: {
|
||||
access: 'yes',
|
||||
amenity: 'parking',
|
||||
fee: 'yes',
|
||||
layer: '-1',
|
||||
name: 'Tour Montparnasse',
|
||||
opening_hours: '24/7',
|
||||
operator: 'InterParking Group',
|
||||
parking: 'underground',
|
||||
'payment:bank_card': 'yes',
|
||||
'payment:cash': 'yes',
|
||||
supervised: 'yes',
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
Loading…
Reference in New Issue