Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 6 of 6

LatLong to Address ??

This is a discussion on LatLong to Address ?? within the MapPoint Desktop Discussion forums, part of the Map Forums category; Does anybody know how to convert a LatLong to an Address?? Btw I am working in Java, but if you ...

  1. #1
    xaxas is offline Junior Member White Belt
    Join Date
    Jun 2006
    Posts
    3

    LatLong to Address ??

    Does anybody know how to convert a LatLong to an Address??
    Btw I am working in Java, but if you work in any other programming language and know how to do it that will help.
    If you don't know how to convert a LatLong to address but to zip code that will work for me as well.

    Thank you in advance!

  2. #2
    Mohamed is offline Member Green Belt
    Join Date
    Mar 2005
    Posts
    97
    Hi xaxas,

    I invite u to do a search in this forum with keys like "reverse geocoding, calcpos, etc. ). You will have the response to your question. As you are a programmer, you can find a lot of posts about that.

    Ciao

  3. #3
    xaxas is offline Junior Member White Belt
    Join Date
    Jun 2006
    Posts
    3
    I searched there but I didn't find what I was looking for.
    Howerver I played a bit with the API and came up with a working idea which gives me the ability to do pretty much everything (search, route etc.) given a GPS location.

  4. #4
    Mohamed is offline Member Green Belt
    Join Date
    Mar 2005
    Posts
    97
    Hi,

    There is some Wilfried's posts about that:


    Code:
                Map map = MP.ActiveMap;
                Location Loc = map.GetLocation(Lat, Lon, 1);
                FindResults StreetResults = map.ObjectsFromPoint(map.LocationToX(Loc), map.LocationToY(Loc));
    
                foreach (object o in StreetResults) {
                    Location StreetLoc = o as Location;
                    if(StreetLoc != null && StreetLoc.StreetAddress != null) {
                        Console.WriteLine("value    " + StreetLoc.StreetAddress.Value);
                        Console.WriteLine("street   " + StreetLoc.StreetAddress.Street);
                        Console.WriteLine("postcode " + StreetLoc.StreetAddress.PostalCode);
                        Console.WriteLine("city     " + StreetLoc.StreetAddress.City);
                    }
                }
    Good night

  5. #5
    xaxas is offline Junior Member White Belt
    Join Date
    Jun 2006
    Posts
    3
    I ran into this piece of code, but in my case (I wanted Java code and there are some major differences) didn't help. Thanks though!

    Anyways, I overcame all issues !!!

  6. #6
    raghu.rao is offline Junior Member White Belt
    Join Date
    Oct 2008
    Posts
    1

    Re: LatLong to Address ??

    does the sample code for Google Maps or Microsoft

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Obtain LatLong with Address
    By ivan in forum Bing Maps and MapPoint Web Service
    Replies: 5
    Last Post: 05-24-2007, 05:00 PM
  2. odd and even address
    By chris2 in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 05-24-2006, 12:07 PM
  3. Getting informations about geographic coordinates (LatLong)
    By badzio in forum Bing Maps and MapPoint Web Service
    Replies: 4
    Last Post: 08-02-2005, 09:34 AM
  4. Anyone willing to look up an address for me?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 11
    Last Post: 02-07-2004, 08:09 PM
  5. Getting Lat/Lon from a given address
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 5
    Last Post: 09-12-2003, 04:01 PM

Tags for this Thread

Posting Permissions

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


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25