Add Latitude/Longitude to businesses list response

iOS app needs lat/lng for client-side distance calculations.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
John Pinkyfloyd 2026-02-16 12:41:00 -08:00
parent df903a9c75
commit ec0f2dea6a

View file

@ -66,7 +66,9 @@ try {
"BusinessID": q.ID[i],
"Name": q.Name[i],
"City": isNull(q.AddressCity[i]) ? "" : q.AddressCity[i],
"Line1": isNull(q.AddressLine1[i]) ? "" : q.AddressLine1[i]
"Line1": isNull(q.AddressLine1[i]) ? "" : q.AddressLine1[i],
"Latitude": isNull(q.AddressLat[i]) ? 0 : val(q.AddressLat[i]),
"Longitude": isNull(q.AddressLng[i]) ? 0 : val(q.AddressLng[i])
};
// Calculate distance if we have both user location and business location