Include address information on nuisance form upload
This commit is contained in:
parent
e08f614d11
commit
e56e83161b
4 changed files with 70 additions and 77 deletions
|
|
@ -1,22 +1,39 @@
|
|||
// Interface definitions
|
||||
interface AddressComponents {
|
||||
number?: string;
|
||||
postal_code?: string;
|
||||
street?: string;
|
||||
city?: string;
|
||||
state?: string;
|
||||
zip?: string;
|
||||
}
|
||||
|
||||
interface AddressContext {
|
||||
iso_3166_a2: string; // "US"
|
||||
iso_3166_a3: string; // "USA"
|
||||
whosonfirst?: AddressContextWhosOnFirst;
|
||||
}
|
||||
interface AddressContextWhosOnFirst {
|
||||
country: WhosOnFirstEntry;
|
||||
county: WhosOnFirstEntry;
|
||||
locality: WhosOnFirstEntry;
|
||||
region: WhosOnFirstEntry;
|
||||
}
|
||||
interface WhosOnFirstEntry {
|
||||
abbreviation?: string; // "SL" or "UT"
|
||||
gid: string; // "whosonfirst:county:102082877"
|
||||
name: string; // "Salt Lake County"
|
||||
}
|
||||
interface AddressProperties {
|
||||
gid: string;
|
||||
name: string;
|
||||
coarse_location?: string;
|
||||
formatted_address_line?: string;
|
||||
address_components?: AddressComponents;
|
||||
coarse_location?: string;
|
||||
context: AddressContext;
|
||||
coordinates?: {
|
||||
lat: number;
|
||||
lon: number;
|
||||
};
|
||||
distance?: number;
|
||||
formatted_address_line?: string;
|
||||
gid: string;
|
||||
precision?: string; // "centroid"
|
||||
name: string;
|
||||
}
|
||||
|
||||
export interface Address {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue