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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T17:16:57+00:00 2026-06-14T17:16:57+00:00

I have the next JSON object but I can’t get latitude and longitude from

  • 0

I have the next JSON object but I can’t get latitude and longitude from it. In JavaScript every time I try I get undefined error:

{
    "response": {
        "date_ts": 1352514978,
        "raw": {
            "profile": "realtime",
            "battery": -100,
            "battery_state": "unknown"
        },
        "uuid": "b191d0d4-a967-47c9-b58b-3b491c8247db",
        "location": {
            "position": {
                "altitude": 0,
                "speed": -4,
                "horizontal_accuracy": 5,
                "latitude": 37.785834,
                "longitude": -122.406417,
                "heading": 0,
                "vertical_accuracy": 0
            },
            "type": "point"
        },
        "date": "2012-11-09T20:36:18-06:00"
    },
    "type": "onSuccess",
    "source": {}
}

Any advice?

  • 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-14T17:16:58+00:00Added an answer on June 14, 2026 at 5:16 pm

    You need to parse the JSON before you can manipulate it as a complex object structure.

    var parsed = JSON.parse(myjson);
    
    console.log(parsed.response.location.position.longitude);
    

    DEMO: http://jsfiddle.net/VwWvP/

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

Sidebar

Related Questions

i have question about YAJLiOS parser... I have next json data : {{ body
I have next interface public interface IMyInterface { string this[string key] { get; set;
I have next 2 blocks of code: def replace_re(text): start = time.time() new_text =
So i have this json I got from a previous query: {HUID:1,UIDS:1,2,3,name:home,type:page,cat_id:home} I print
Good Day, I have been struggling to get this right for quite some time
I have a script where I get some data through JSON, this is like
I have written some JavaScript code that will read from the Google Maps API
I have a JSON object which returns a list of events with dates and
Is there a reliable way to JSON.stringify a JavaScript object that guarantees that the
I have already searched from this question in SO. But none of the answers

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.