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

138
Views
Google map embed map direction mode vs google map javascript direction service get wrong duration time?

I have a website that uses google map javascript direction service to compute the route and duration between 2 locations and embed a map to display the route for the user, but when comparing 2 duration between 2 APIs that gives me the wrong time.

here is my javascript code

directionsService.route({
                        origin: origin,
                        destination: destination,
                        travelMode: "Driving"
                    })

Embed map api url

https://www.google.com/maps/embed/v1/directions?key=MY_KEY&origin=origin&destination=destination&mode=driving

Did google map embed map give me the duration containing the traffic time also?

I hope this helps you to understand my issue. Tell me if I am wrong on something.

Thanks.

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!