refactor(map): switch reverse geocoding from Bing to Mapbox
Reuse the existing Mapbox token instead of maintaining a separate Bing Maps key. Note the coordinate order flips to lon,lat for the Mapbox geocoding endpoint.
This commit is contained in:
@@ -1,44 +1,11 @@
|
||||
export default interface ILocationQuery {
|
||||
authenticationResultCode: string
|
||||
brandLogoUri: string
|
||||
copyright: string
|
||||
resourceSets: [
|
||||
{
|
||||
estimatedTotal: number
|
||||
resources: [
|
||||
{
|
||||
__type: string
|
||||
bbox: number[]
|
||||
name: string
|
||||
point: {
|
||||
type: string
|
||||
coordinates: number[]
|
||||
}
|
||||
address: {
|
||||
addressLine: string
|
||||
adminDistrict: string
|
||||
adminDistrict2: string
|
||||
countryRegion: string
|
||||
formattedAddress: string
|
||||
locality: string
|
||||
postalCode: string
|
||||
}
|
||||
confidence: string
|
||||
entityType: string
|
||||
geocodePoints: [
|
||||
{
|
||||
type: string
|
||||
coordinates: number[]
|
||||
calculationMethod: string
|
||||
usageTypes: string[]
|
||||
}
|
||||
]
|
||||
matchCodes: string[]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
statusCode: number
|
||||
statusDescription: string
|
||||
traceId: string
|
||||
type: string
|
||||
features: Array<{
|
||||
id: string
|
||||
type: string
|
||||
place_type: string[]
|
||||
text: string
|
||||
place_name: string
|
||||
center: number[]
|
||||
}>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user