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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T06:58:32+00:00 2026-06-17T06:58:32+00:00

If one is dealing with hundreds of polylines, would there be a big performance

  • 0

If one is dealing with hundreds of polylines, would there be a big performance benefit to encoding the polylines using https://developers.google.com/maps/documentation/utilities/polylinealgorithm?hl=sv-SE

It seems that this is mostly used with API v2 and v3 handles large amounts of polylines on its own fairly well?

I can’t seem to find any benchmark comparisons.

  • 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-17T06:58:33+00:00Added an answer on June 17, 2026 at 6:58 am

    There is a substantial gain when using google.maps.geometry.encoding.decodePath() to decode encoded paths when adding a polyling/polygon to a google map. I have a couple of paths with over a thousand points, and instead of looping through each point and creating a LatLng to be added to a Polygon, a simple decode loads visually quicker.

    Additionally as Salman pointed out, there can be a substantial gain by reducing network traffic for passing paths via Ajax. Take google’s example:

    Characters
    0        1         2         3         4         5         6         7
    1234567890123456789012345678901234567890123456789012345678901234567890
    38.5,-120.2|40.7,-120.95|43.252,-126.453  // Polyline Decoded: 40 chars
    _p~iF~ps|U_ulLnnqC_mqNvxq`@               // Polyline Encoded: 27 chars
    

    With only 3 points we’ve reduced the the size of the points by 33%.

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

Sidebar

Related Questions

I'm dealing with an annoying database where one field contains what really should be
Other questions dealing with use of match_parent pre 2.2 have answers stating one should
I need some help dealing with three Threads in Android One thread is the
I just seem to hit one error after another when dealing with larger projects
I am currently dealing with code purchased from a third party contractor. One struct
Is there any way to improve the performance of the following CTE query (
Regular Expressions are a complete void for me. I'm dealing with one right now
One of my biggest issues dealing with a move from Java to .Net is
One of the most obnoxious things about developing a website from scratch is dealing
I am dealing with 2 windows . One is created by Qt Designer and

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.