Auto-geocode tenant/store address into latitude/longitude on onboarding
Both the tenant onboarding and store/branch forms only had free-text address fields with no coordinates captured, even though the backend already accepts and stores latitude/longitude on both tenants and tenantlocations. Wires in the existing keyless AddressAutocomplete (Nominatim) component used by UsersPanel so picking an address also geocodes it, and threads latitude/longitude through both create payloads.
This commit is contained in:
@@ -1037,6 +1037,8 @@ export interface CreateTenantLocationPayload {
|
||||
city?: string;
|
||||
state?: string;
|
||||
postcode?: string;
|
||||
latitude?: string;
|
||||
longitude?: string;
|
||||
applocationid?: number;
|
||||
}
|
||||
|
||||
@@ -1050,6 +1052,8 @@ export interface CreateTenantInput {
|
||||
city?: string;
|
||||
state?: string;
|
||||
postcode?: string;
|
||||
latitude?: string;
|
||||
longitude?: string;
|
||||
approved?: number;
|
||||
status?: string;
|
||||
applocationid?: number;
|
||||
|
||||
Reference in New Issue
Block a user