×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jul 2008
    Posts
    21

    Thumbs up How to get the addressInfo for a given latitude and longitude

    Hi friends,

    I am working on Location API for a BlackBerry device.

    I am able to get the current location's latitude and longitude.

    But I want to get the address info like cityname, country name, postal code...etc.

    I have written a code:

    public void locationUpdated(LocationProvider provider, Location location)
    {
    AddressInfo address = location.getAddressInfo();
    but I am getting address as null.
    }

    I know that this is not a blackberry dev forum. I tried in the BB forum, but didn't get a proper answer. thats why I am posting here.

    Can any one please help me to get the address info for a given latitude and longitude.

    Thanks,
    Manoj.

  2. #2
    Nokia Developer Champion
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,545

    Re: How to get the addressInfo for a given latitude and longitude

    Search for "reverse geocoding". Read up on it, e.g., here http://en.wikipedia.org/wiki/Geocoding

    You need to access a free or license database/service for getting the info. Java APIs per se do not give you that.

  3. #3
    Regular Contributor
    Join Date
    Mar 2008
    Posts
    198

    Re: How to get the addressInfo for a given latitude and longitude

    Quote Originally Posted by m.manojkumar View Post
    Can any one please help me to get the address info for a given latitude and longitude.
    There are a number of ways of doing this, NAVTEQ Network for Developers describes a few of them.

    - Mike
    NAVTEQ Network for Developers
    The community for developing innovative location-based applications
    http://NN4D.com

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. Open google map site with current Longitude and Latitude
    By videoFx in forum [Archived] Flash Lite on Nokia Devices
    Replies: 3
    Last Post: 2009-04-06, 18:11
  3. 9210 City latitude and longitude
    By nickct in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2002-08-16, 10:38

Posting Permissions

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