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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T23:35:08+00:00 2026-06-14T23:35:08+00:00

I have an application, and I’m using the Google Javascript Geocoding API to fetch

  • 0

I have an application, and I’m using the Google Javascript Geocoding API to fetch lat/lng for an address.

The code goes something like

geocoder = new google.maps.Geocoder()
geocoder.geocode({ 'address': query }, function(results, status) {
    addresses = {};
    $.each(results, function(index, value){
        addresses[index] = {"lat":value.geometry.location.$a,"lng":value.geometry.location.ab}
    })
});

All is fine and dandy, but the thing is that the property names of the location object periodically change. Each time they change, my site breaks.

Twice I’ve had to change my code to accommodate the weird lat/lng property name changes in google’s geolocation api. Originally it was Xa, Ya, then I had to change to Ya, Za, and now its $a, ab. I don’t see any user friendly logic behind these changes.

Does anyone know why these property names change, and/or what strategy can I use to obtain the lat/lng while avoiding the problems caused by these property name changes?

  • 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-14T23:35:09+00:00Added an answer on June 14, 2026 at 11:35 pm

    Use the documented properties, they will not change

    geometry.location is a google.maps.LatLng object, the documented methods are:

    lat()   number  Returns the latitude in degrees.
    lng()   number  Returns the longitude in degrees.
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have application that works using Perl's CGI::Fast . Basically mainloop of the code
I have application with in app billing. I'm using the AndroidBillingLibrary to manage the
I have application written in Java that is using EJB3 + Toplink. I'm using
We have application have been written in Silverlight using MVVM pattern. We need to
I have application that displays webpage with url something like https://www.test.com/checkout/reserve/DHrhrzPEC6MepeMoZinxoQD4QvAaevgx7xYDZJtX8azf0_ii_Zv2b2rpiYgToXHP from this url
I have application which uses Sherlock ActionBar package. The application uses platform-specific behavior for
I have application where i have two view controllers my first view and second
I have application with needs to have access to some sensitive data(in this case
I have application which needs to use a dll (also written by me) which
I have application that makes different queries with different results so the caching in

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.