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

The Archive Base Latest Questions

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

This is driving me nuts, for some reason the API used to return the

  • 0

This is driving me nuts, for some reason the API used to return the Lat and Lon like this:
(I think it was like this):

place.geometry.location.y as Latitude
place.geometry.location.z as Longitude

Then it started returning it like this:

place.geometry.location.Ya as Latitude
place.geometry.location.Za as Longitude

And today my APP wasn’t working and I discovered that it was because the Google API was returning the Lat and Lon like this:

place.geometry.location.$a as Latitude
place.geometry.location.ab as Longitude

wtf? How am I supposed to work with this? I’m thinking on simply reading the first variable inside locations as Latitude and the second as Longitude regardless their names. But I’m afraid the API might return a completely different object next time and mess up my javascript.

Anyone experienced this? What am I supposed to do?

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

    place.geometry.location consists by LatLng class.
    So if you want to get Latitude/Longitude, you should use like this code:

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

    And the reference of the place.geometry.location is here.
    https://developers.google.com/maps/documentation/javascript/reference#PlaceGeometry

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

Sidebar

Related Questions

This is driving me nuts. I think it is because of some connection string
Ok, this is driving me nuts... I'm trying to rewrite my urls like this:
This is driving me nuts! I'm getting some JSON from my server: {id262:{done:null,status:null,verfall:null,id:262,bid:20044,art:owner,uid:demo02,aktion:null,termin_datum:null,docid:null,gruppenid:null,news:newsstring,datum:11.06.2010,header:headerstring,for_uid:demo01}, id263:{done:null,status:pending,verfall:null,bid:20044,id:263,uid:demo02,art:foo,aktion:dosomething,termin_datum:11.06.2010,docid:null,gruppenid:null,datum:11.06.2010,news:newsstring,for_uid:demo01,header:headerstring},
This is driving me nuts. I am using some 3rd-party code in a Windows
This is driving me nuts. Here is some HTML and CSS that I have
I really need some help as this is driving me nuts! I need to
This is driving me nuts, I've tried everything for about a week. Hope some
For some reason, I can't get this validation to work as I'd like it
This is driving me nuts. I can't seem to get the data template within
This is driving me nuts. I believe I asked this exact same question, but

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.