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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T15:44:06+00:00 2026-06-03T15:44:06+00:00

I am trying to reverse geocode my location using google maps to retrieve my

  • 0

I am trying to reverse geocode my location using google maps to retrieve my current location’s street name and perhaps postal code. I tried out many projects that used locality but i think my country always causes it to return a null(I am from Singapore).

Using XML, i am kinda unsure how am i suppose to parse the file i got from Google maps.

serverAddress = new URL("http://maps.google.com/maps/geo?q=" + Double.toString(loc.getLatitude()) + "," + Double.toString(loc.getLongitude()) +
"&output=xml&oe=utf8&sensor=true&key=Hidden");

Can anyone give me a direction here to move towards? Should i use the Document function to save and then proceed with SAX to parse the file?

  • 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-03T15:44:14+00:00Added an answer on June 3, 2026 at 3:44 pm

    try this:

        String urlStr = "http://maps.google.com/maps/geo?q=" + lat + "," + lon + "&output=json&sensor=false";
      String response = "";
      List<Address> results = new ArrayList<Address>();
      HttpClient client = new DefaultHttpClient();
    
      Log.d("ReverseGeocode", urlStr);
      try {
             HttpResponse hr = client.execute(new HttpGet(urlStr));
             HttpEntity entity = hr.getEntity();
    
             BufferedReader br = new BufferedReader(new InputStreamReader(entity.getContent()));
    
             String buff = null;
             while ((buff = br.readLine()) != null)
                response += buff;
              } catch (IOException e) {
                  e.printStackTrace();
           }
    

    for more detail for ReverseGeocode see this example

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

Sidebar

Related Questions

I am trying to reverse geocode the latitude and longitude of my google maps
I'm currently trying to reverse geocode a series of lat/long co-ordinates using the Virtual
I am trying to get the name of the city of user's current location
I'm trying to submit a query using the postal code to my DB whenever
I am trying to Reverse GeoCode current Lat/Long data to just Admin Area and
I am trying to reverse a linked list. This is the code I have
My URLconf contains this pattern: url(r'^accounts/logout/$','django.contrib.auth.views.logout', name=logout), And I've trying to reverse that in
Trying to read in some information from the google maps api into my application
I am trying to reverse a C style string using the following simple program.
I'm trying to reverse items in a dictionary in C#. I have tried: Dictionary<double,

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.