Remove direct calls to stadia API from geocoding
This commit is contained in:
parent
43dce16fbd
commit
9ef6aaa406
20 changed files with 213 additions and 274 deletions
26
ts/type/api.ts
Normal file
26
ts/type/api.ts
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
export interface Address {
|
||||
country: string;
|
||||
gid: string;
|
||||
locality: string;
|
||||
number: string;
|
||||
postal_code: string;
|
||||
raw: string;
|
||||
region: string;
|
||||
street: string;
|
||||
unit: string;
|
||||
}
|
||||
export interface Location {
|
||||
latitude: number;
|
||||
longitude: number;
|
||||
}
|
||||
export interface GeocodeSuggestion {
|
||||
detail: string;
|
||||
gid: string;
|
||||
locality: string;
|
||||
type: string;
|
||||
}
|
||||
export interface Geocode {
|
||||
address: Address;
|
||||
cell: number;
|
||||
location: Location;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue