Introduce Mimirsbrunn geocoder and improve addresses & maps
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -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}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
@@ -5,7 +5,13 @@ query {
|
||||
config {
|
||||
name,
|
||||
description,
|
||||
registrationsOpen
|
||||
registrationsOpen,
|
||||
countryCode,
|
||||
location {
|
||||
latitude,
|
||||
longitude,
|
||||
accuracyRadius
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
@@ -24,7 +24,9 @@ const physicalAddressQuery = `
|
||||
region,
|
||||
country,
|
||||
geom,
|
||||
id
|
||||
type,
|
||||
id,
|
||||
originId
|
||||
`;
|
||||
|
||||
const tagsQuery = `
|
||||
|
||||
Reference in New Issue
Block a user