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 9196221
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T21:48:13+00:00 2026-06-17T21:48:13+00:00

The following link shows how to add polylines to a map. https://developers.google.com/maps/documentation/android/lines But how

  • 0

The following link shows how to add polylines to a map.

https://developers.google.com/maps/documentation/android/lines

But how do we get these to snap to the closest street? It is possible in javascript implementations of maps, as shown here:

http://econym.org.uk/gmap/example_snappath.htm

Thanks

  • 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-17T21:48:14+00:00Added an answer on June 17, 2026 at 9:48 pm

    You cannot do that on default maps. you can do that only when you have the vector data of the streets, and you will not get them from tomtom(teleatlas) or nokia(navteq).

    You can do that only for maps where vectors are available, e.g OpenStreetMap.

    That what you showed in the link, is another thing:
    They got the unsnapped start and end position that the user clicked, and passed that to google web service, which did first snap start and end to the nearest road, then calculated the route, and google drawed the route on its map. So i assume they even did not draw a polyline, they used only the google web service.

    Since GPS receivers are today very accurate (3-6m) it is not neccessary any more to snap to next road. Further such snapping introduces errors, when driving on a road that does not exist on the map.

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

Sidebar

Related Questions

I have come across the following link: http://code.google.com/p/a-star/source/browse/trunk/java/PathFinder.java?r=8 I have got the code working
ive created the following code. it shows the tabs i want but the content
The Add new item link on any list in Sharepoint2010 shows up a window/frame.
Please see the following link structure http://stackoverflow.com/questions/10672712/voting-system-like-stackoverflow In the above link the 10672712 is
I try to access information from Twitter and I followed this link: http://code.google.com/p/sociallib/wiki/SocialLibGuide I
I have the following link on index page <td align=center><a href=../athena/admin/update.php?id=' . $data [keyword]
I have the following link function MyLinqToSQLTable.Where(x => x.objectID == paramObjectID).ToList(); I most of
In the following link <a href=\#\ onclick=javascript:print(\\) style=\color:blue;\>Print</a> <script> function print() { //How to
With reference to the following link: http://docs.python.org/faq/library.html#what-kinds-of-global-value-mutation-are-thread-safe I wanted to know if the following:
In the following link http://www.faqs.org/docs/Linux-HOWTO/NFS-HOWTO.html It said a process is not killable except by

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.