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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T01:12:50+00:00 2026-06-15T01:12:50+00:00

I am using google encoding libraries to encode and decode path points array, like

  • 0

I am using google encoding libraries to encode and decode path points array, like below:

To encode:

var encodedPath = google.maps.geometry.encoding.encodePath(path);

To decode:

var decodedPath = google.maps.geometry.encoding.decodePath(encodedPath);

However I found the encoding libraries is not consistently loaded every time. Sometimes the libraries only loads up to maps, as I printed out below:

showRouteFor(): google = [object Object]
showRouteFor(): google.maps = [object Object]
showRouteFor(): google.maps.geometry = undefined

using the below piece of JS code:

console.log("showRouteFor(): google = " + google);
if(google != null) {
    console.log("showRouteFor(): google.maps = " + google.maps);
    if(google.maps != null) {
        console.log("showRouteFor(): google.maps.geometry = " + JSON.stringify(google.maps.geometry));
        if(google.maps.geometry != null) {
            console.log("showRouteFor(): google.maps.geometry.encoding = " + JSON.stringify(google.maps.geometry.encoding));
        }
    }
}

Other times the libraries load ok and thus I can use it to decode the path.

What can be the reason?
Thank you for your time.

  • 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-15T01:12:51+00:00Added an answer on June 15, 2026 at 1:12 am

    Make sure you load the library by URL.

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

Sidebar

Related Questions

While using Google chrome if I shut down it unexpectedly. like turn of pc
I m using MkMapView with google maps.I succeed to show map view and address
When I enter a URL into maps.google.com such as https://dl.dropbox.com/u/94943007/file.kml , it will encode
I would like to ADD a ACL to a Google Storage object using the
I am using openssl libraries for purpose of encoding and decoding to base64, This
Using Google AppScript. How could I find the checked RadioButton in a group? If
Using Google App Engine, I am trying to urlfetch a gzip file from a
Using Google Apps Script, I've made a UI for use on a Google Spreadsheet.
Using Google Apps Script. I know it is not a programming issue, but got
Using Google Apps for your Domain, is it possible to set up a catch-all

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.