Include address information on nuisance form upload

This commit is contained in:
Eli Ribble 2026-04-03 23:04:04 +00:00
parent e08f614d11
commit e56e83161b
No known key found for this signature in database
4 changed files with 70 additions and 77 deletions

View file

@ -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 {