Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9229151
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T05:30:05+00:00 2026-06-18T05:30:05+00:00

Thanks for any help you can provide on this one! I’m using Google Maps

  • 0

Thanks for any help you can provide on this one!

I’m using Google Maps API V3 to create a tool that lets the user enter a starting point, end point, and multiple waypoints. For an example of multiple waypoints, see: https://developers.google.com/maps/documentation/javascript/directions#Waypoints

Sometimes, however, users enter a bad address or too many waypoints. People were getting upset that their map would not appear and they couldn’t understand why. So, I built an alert system. For example, when the user puts in too many waypoints, they get an alert for the (status == google.maps.DirectionsStatus.MAX_WAYPOINTS_EXCEEDED), and so forth.

Here’s the problem: when a users enters more than one waypoint, Google will not give me the alert for this status:

if(status == google.maps.DirectionsStatus.NOT_FOUND){
alert("Error: One or more of your addresses was not found."); }

When I have ONLY one waypoint, the alert appears just find. Any ideas how I can fix this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T05:30:06+00:00Added an answer on June 18, 2026 at 5:30 am

    The problem is that you get a different response, ZERO_RESULTS, which you are ignoring. You need to look at any status that is not OK.

    Example

    Returns ZERO_RESULTS with 2 waypoints. NOT_FOUND with one. Both are errors.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Thanks in advance for any help you can provide on this issue! I manage
Sample data: I can flatten out parent-child relationship using this query.... Any help... Thanks
Thanks for any help in advance, I can't wrap my SQL skills around this
Still learning WPF....thanks for any help. Is there any way to Refactor this: <ListBox
I am using c# .net. Thanks in advance for any help. I have searched
Thanks for any help in advance :) Context I am using SpreadsheetGear within my
Can any one provide sample program to dequeue messages in Java? I want standalone
i have very serious problem if any tech expert can help...thank you in advance..
i've been asked this question and id not know the answer. Thanks for any
I'm stumbling out of the blocks on this one. I can't get this code

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.