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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T18:22:51+00:00 2026-06-14T18:22:51+00:00

Possible Duplicate: google.maps.Geocoder.geocode() geometry.location lat/lng property names change frequently I use Google Map v3

  • 0

Possible Duplicate:
google.maps.Geocoder.geocode() geometry.location lat/lng property names change frequently

I use Google Map v3 and its geocoder api in my applicaiton. I use this url to get refer to the api:
http://maps.google.com/maps/api/js?key=key&sensor=false

The following code used to work very well:

    geocoder.geocode( 
    {'address': address }, function(data, status) 
    { 

            var lat = data[0].geometry.location.Ya;
            var lng = data[0].geometry.location.Za;
              });

But since the api changed on 18th of Nov, this code cannot get the lat and lng information anymore:

var lat = data[0].geometry.location.Ya;
var lng = data[0].geometry.location.Za;

I need to use:

var lat = data[0].geometry.location.$a;
var lng = data[0].geometry.location.ab;

I understand that the problem can be fixed by:

var latlng = data[0].geometry.location;
var lat = latlng.lng();
var lng = latlng.lat();

But is it weired to keep on changing the variable’s name? This happened on 22nd of October, now it is changed again. I am just wondering if anybody had the similar problem before? Is there a Google Map v3 javascript URL with version number so that I don’t need to use the latest version? Thanks in advance.

  • 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-14T18:22:52+00:00Added an answer on June 14, 2026 at 6:22 pm

    load Google API via:

    <!--load Google API-->
    <script type="text/javascript" src="https://apis.google.com/js/client.js"></script>
    

    then go to API console, create your new project and enable the Google API you need, in your case Gmaps V3 api (you see on/off buttons to enable services you need )

    https://code.google.com/apis/console

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

Sidebar

Related Questions

Possible Duplicate: Google Maps output=kml broken? I want to use route system by using
Possible Duplicate: Can Google Maps/Places 'autocomplete' API be used via AJAX? There seems to
Possible Duplicate: How can I use the Google App engine bulkloader to back up
Possible Duplicate: Google Maps Save Polygon and points in MySQL using PHP In my
Possible Duplicate: Remove marker in Google Maps Api v3 I'm trying to give users
Possible Duplicate: How to use Google Analytics with Phonegap without a plugin? I want
Possible Duplicate: Android: automatically choose debug/release Maps api key? I use MapView in my
Possible Duplicate: How do I define a unique property for a Model in Google
Possible Duplicate: Google Maps JS API v3 - Simple Multiple Marker Example On my
Possible Duplicate: Google Maps v3 Shifting After Loading in Wordpress I used the 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.