Introduce Mimirsbrunn geocoder and improve addresses & maps

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2019-11-08 19:37:14 +01:00
parent 0e7cf89492
commit c599a47d58
36 changed files with 940 additions and 267 deletions

View File

@@ -1,20 +1,34 @@
import gql from 'graphql-tag';
const $addressFragment = `
id,
description,
geom,
street,
locality,
postalCode,
region,
country,
type,
url,
originId
`;
export const ADDRESS = gql`
query($query:String!) {
query($query:String!, $locale: String) {
searchAddress(
query: $query
query: $query,
locale: $locale
) {
id,
description,
geom,
street,
locality,
postalCode,
region,
country,
url,
originId
${$addressFragment}
}
}
`;
export const REVERSE_GEOCODE = gql`
query($latitude: Float!, $longitude: Float!, $zoom: Int, $locale: String) {
reverseGeocode(latitude: $latitude, longitude: $longitude, zoom: $zoom, locale: $locale) {
${$addressFragment}
}
}
`;

View File

@@ -5,7 +5,13 @@ query {
config {
name,
description,
registrationsOpen
registrationsOpen,
countryCode,
location {
latitude,
longitude,
accuracyRadius
}
}
}
`;

View File

@@ -24,7 +24,9 @@ const physicalAddressQuery = `
region,
country,
geom,
id
type,
id,
originId
`;
const tagsQuery = `