×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Mar 2010
    Posts
    2

    Question How to retrive location name form latitude and longitude?

    Hi...
    I m developing location based application for Symbian s60 platform.
    I have found the latitude and longitude for a particular location.
    But I don't know how to get location name from this latitude and longitude.
    Can anybody help me to resolve this problem as soon as possible?
    If possible then give me source code or any link for the same.
    Thank you.

    Hiii there...
    anybody can please give me some hint or Soruce code for the above problem?
    I am using this code...

    private void checkLocation()
    {
    String string;
    try {
    // Request the location, setting a one-minute timeout
    location = locationProvider.getLocation(100);
    } catch (LocationException e) {
    return;
    } catch (InterruptedException e) {
    return;
    }
    coordinates = location.getQualifiedCoordinates();
    if (coordinates != null) {
    // Use coordinate information
    double lat = coordinates.getLatitude();
    double lon = coordinates.getLongitude();
    string = "\nLatitude : " + lat + "\nLongitude : " + lon;

    // location.getAddressInfo();

    } else
    {
    string = "Calculating position, no fix yet.";
    }
    text.setText(string);
    }
    -------------------------------------
    " location.getAddressInfo(); "
    This code is not working.
    Last edited by chirag.pandya; 2010-03-18 at 04:53.

  2. #2
    Super Contributor
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,553

    Re: How to retrive location name form latitude and longitude?

    You need (access to) a database that has the information. Keywords to search for: "geocode", "geocoding","reverse geocoding", "gelocation", "reverse geolocation".

  3. #3
    Super Contributor
    Join Date
    Mar 2008
    Posts
    1,481

    Re: How to retrive location name form latitude and longitude?

    See Reverse Geocoding (Address Lookup) section in this link http://code.google.com/apis/maps/doc...ion/geocoding/

  4. #4
    Registered User
    Join Date
    Dec 2009
    Posts
    376

    Re: How to retrive location name form latitude and longitude?

    The best solution for it can be to use location Api of BING maps or else create your own database for location.when you use Bing maps api you will be returned with xml document by parsing that document and retriving name of location from that document will solve your problem

Similar Threads

  1. how to get map of a location if I know its Latitude and Longitude?
    By rohanwaugh in forum Symbian Networking & Messaging (Closed)
    Replies: 6
    Last Post: 2011-06-28, 07:44
  2. Latitude and Longitude find problem in device
    By yatin_indianic in forum Mobile Java General
    Replies: 5
    Last Post: 2010-03-10, 17:06
  3. Displaying Latitude & Longitude: 2 problems
    By nstapleton in forum Symbian
    Replies: 10
    Last Post: 2009-05-26, 15:15
  4. How to get the addressInfo for a given latitude and longitude
    By m.manojkumar in forum Mobile Java General
    Replies: 2
    Last Post: 2009-04-18, 11:24

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×