fix: correct coordinate keys for Routes API and lift offers banner

This commit is contained in:
2026-02-27 23:02:59 -05:00
parent 1cd83f5fb3
commit ad53f8f8d7

View File

@ -687,12 +687,12 @@ async function calculateWalkingPath(origin: { lat: number, lng: number }, target
const response = await routeService.computeRoutes({ const response = await routeService.computeRoutes({
origin: { origin: {
location: { location: {
latLng: { latitude: origin.lat, longitude: origin.lng } latLng: { lat: origin.lat, lng: origin.lng }
} }
}, },
destination: { destination: {
location: { location: {
latLng: { latitude: targetStop.latitude, longitude: targetStop.longitude } latLng: { lat: targetStop.latitude, lng: targetStop.longitude }
} }
}, },
travelMode: 'DRIVE', travelMode: 'DRIVE',
@ -1209,8 +1209,8 @@ async function calculateWalkingPath(origin: { lat: number, lng: number }, target
═══════════════════════════════════════ */ ═══════════════════════════════════════ */
.offers-sheet { .offers-sheet {
position: fixed; position: fixed;
/* Base 72px (altura menú) + 40px espacio visual + safe area */ /* Base 72px (altura menú) + 60px espacio visual + safe area */
bottom: calc(72px + 40px + env(safe-area-inset-bottom, 0px)); bottom: calc(72px + 60px + env(safe-area-inset-bottom, 0px));
left: 10px; left: 10px;
right: 10px; right: 10px;
background: #fff; background: #fff;
@ -1236,7 +1236,7 @@ async function calculateWalkingPath(origin: { lat: number, lng: number }, target
@media (max-width: 900px) { @media (max-width: 900px) {
.offers-sheet { .offers-sheet {
/* En móvil más espacio aún por el menú nativo */ /* En móvil más espacio aún por el menú nativo */
bottom: calc(100px + env(safe-area-inset-bottom, 0px)); bottom: calc(120px + env(safe-area-inset-bottom, 0px));
left: 8px; left: 8px;
right: 8px; right: 8px;
} }