Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

502
Views
Detectando el error OVER_QUERY_LIMIT en la API de distancia de Google Maps

Estoy usando el siguiente código para recuperar la función en caso de OVER_QUERY_LIMIT

 function renderRoute(){ directionService.route({......}).then(async(response)=>{.....}).catch(async(err)=>{ if(err.code==google.maps.DirectionsStatus.OVER_QUERY_LIMIT){ await sleep(1000); return Promise.resolve(renderRoute()); } else{ return Promise.reject(err); } }).catch(err=>{console.log(`Error ocurred`}) }

El código funciona bien, pero sigo viendo este error en la consola: _.zA {message: 'DIRECTIONS_ROUTE: OVER_QUERY_LIMIT: There was an issue performing a Directions request.', stack: 'Error: DIRECTIONS_ROUTE: OVER_QUERY_LIMIT: There w…s.com/maps-api-v3/api/js/47/3/directions.js:9:405', name: 'MapsServerError', endpoint: 'DIRECTIONS_ROUTE', code: 'OVER_QUERY_LIMIT'}

¿Hay alguna manera de ocultar esto?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!