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:
2026-07-27 11:34:35 +05:30
parent 02b5258000
commit 6a6221f9f3
2 changed files with 49 additions and 35 deletions

View File

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