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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T10:27:40+00:00 2026-06-03T10:27:40+00:00

I am trying to get this address = 8198 Snouffer School Rd, Gaithersburg, MD

  • 0

I am trying to get this address = “8198 Snouffer School Rd, Gaithersburg, MD 20879, USA”

from this json request but could not successful to do it.

{
  "name": "39.165110,-77.168550",
  "Status": {
    "code": 200,
    "request": "geocode"
  },
  "Placemark": [ {
    "id": "p1",
    "address": "8198 Snouffer School Rd, Gaithersburg, MD 20879, USA",
    "AddressDetails": {
   "Accuracy" : 8,
   "Country" : {
      "AdministrativeArea" : {
         "AdministrativeAreaName" : "MD",
         "Locality" : {
            "LocalityName" : "Gaithersburg",
            "PostalCode" : {
               "PostalCodeNumber" : "20879"
            },
            "Thoroughfare" : {
               "ThoroughfareName" : "Snouffer School Rd"
            }
         }
      },
      "CountryName" : "USA",
      "CountryNameCode" : "US"
   }
},
    "ExtendedData": {
      "LatLonBox": {
        "north": 39.1661825,
        "south": 39.1634846,
        "east": -77.1666884,
        "west": -77.1693864
      }
    },
    "Point": {
      "coordinates": [ -77.1685611, 39.1650977, 0 ]
    }
  } ]
}

I have extracted Code from status but could not understand how to extract address.

NSArray* Status = [(NSDictionary*)[responseString JSONValue] objectForKey:@"Status"];

NSString *code = [Status objectForKey:@"code"];            
NSArray* Placemark  = [(NSDictionary*)[responseString JSONValue] objectForKey:@"Placemark"];    
NSString *address = [Placemark objectForKey:@"address"]; // got error at this line.
  • 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-03T10:27:42+00:00Added an answer on June 3, 2026 at 10:27 am

    It’s an Array not the JSON Object.
    try

    NSString *address = [[Placemark objectAtIndex:0] objectForKey:@"address"]]; 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I used google API to get address from given GPS coordinates. But this address
Im trying to get this working but for some reason it's just not right.
I was trying to get variable in Query String from URL. But somehow, its
I am trying to get images from a URL using php. I used this
I have tried dozens of configuration settings trying to get this to work, but
I am trying to develop an application but I get this error whenever I
I'm trying to learn how from this site http://msdn.microsoft.com/en-us/library/cc265158(v=vs.95).aspx but the code won't compile
I'm trying to get coordinates of address from google map with Classic Asp. When
I am trying to get this functionality going but am a bit uncertain and
trying to get this contact form to work properly, the form slides out from

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.