fix: correct Routes API service usage and fix bus stops missing markers
This commit is contained in:
@ -56,11 +56,12 @@ export function useParadaCercana() {
|
||||
let mejorRutaPuntos: google.maps.LatLng[] = [];
|
||||
|
||||
try {
|
||||
const { Route } = await google.maps.importLibrary("routes") as any;
|
||||
const { RoutesService } = await google.maps.importLibrary("routes") as any;
|
||||
const routeService = new RoutesService();
|
||||
|
||||
for (const stop of top5) {
|
||||
try {
|
||||
const response = await Route.computeRoutes({
|
||||
const response = await routeService.computeRoutes({
|
||||
origin: {
|
||||
location: {
|
||||
latLng: {
|
||||
|
||||
Reference in New Issue
Block a user