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:
parent
df903a9c75
commit
ec0f2dea6a
1 changed files with 3 additions and 1 deletions
|
|
@ -66,7 +66,9 @@ try {
|
||||||
"BusinessID": q.ID[i],
|
"BusinessID": q.ID[i],
|
||||||
"Name": q.Name[i],
|
"Name": q.Name[i],
|
||||||
"City": isNull(q.AddressCity[i]) ? "" : q.AddressCity[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
|
// Calculate distance if we have both user location and business location
|
||||||
|
|
|
||||||
Reference in a new issue