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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T22:25:21+00:00 2026-05-24T22:25:21+00:00

i want to get the latlng value base on user input address for e.g.

  • 0

i want to get the latlng value base on user input address for e.g. limda chowk, rajkot, gujarat, india.

but i am not getting perfect latlng value.

if i pass the street like limda chowk, subhash road, rajkot, gujarat, india,
then it’ll give me the latlng center of the street.

i want that particular latlng of that location how can i get this think in android

here is my code for that

public static String getLatLng(Context context,String addr){
    Geocoder geocoder = new Geocoder(context, Locale.getDefault());
    String add;
    try{
        List<Address> addresses = geocoder.getFromLocationName(addr, 1);
        Address obj = addresses.get(0);
        add = obj.getAddressLine(0);

        add = add + "\nCountryName " + obj.getCountryName();
        add = add + "\nCountryCode " + obj.getCountryCode();
        add = add + "\nAdminArea " + obj.getAdminArea();
        add = add + "\nPostalCode " + obj.getPostalCode();
        add = add + "\nSubAdminArea " + obj.getSubAdminArea();
        add = add + "\nFeatureName " + obj.getFeatureName();
        add = add + "\nLocality " + obj.getLocality();
        add = add + "\n" + obj.getSubThoroughfare();
        add = add + "\nurl " + obj.getUrl();
        add = add + "\nLatitude " + obj.getLatitude();
        add = add + "\nLongitude " + obj.getLongitude();

        //Log.v("IGA", "Address" + add);

    }catch(Exception e){
        e.printStackTrace();
        add = e.toString();
    }
    return add;
}

thanks

  • 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-05-24T22:25:21+00:00Added an answer on May 24, 2026 at 10:25 pm

    actually I got the answer for my question that was, google not store the all the address for the area like wise here in my question “limda chowk”, because it’s not too famous or not important with the nearest other place like “sastriya medan”. If I want to exact latlng of the place I need to create my own database, collect the addresses information and store into this database with appropriate latlng value.

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

Sidebar

Related Questions

I want to get the base 10 logarithm of a Fixnum using Ruby, but
I want to get the MD5 Hash of a string value in SQL Server
I want to get a list of files in a directory, but I want
I have the coordinates of my marker. Now I want to get the address
I want get data in db to listview. but it have error I cannot
When I want get total value of memory in C# I found a kernel32
here I want to display the pin(marker) point location address for this latlng? And
I searched a lot in google but not able to get the answer required.
I want to get latlng object in google maps in advance. Basically my json
I want to get the distance from A to B by latlng.When i run

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.