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 2 of 2

How to get address from Lat/Long?

This is a discussion on How to get address from Lat/Long? within the Development forums, part of the MapPoint Desktop Discussion category; I need some c# code to get an address from a Lat/Long. I have already tried the mechanism used in ...

  1. #1
    chance1166 is offline Junior Member White Belt
    Join Date
    Dec 2005
    Posts
    9

    How to get address from Lat/Long?

    I need some c# code to get an address from a Lat/Long. I have already tried the mechanism used in the book Programming MapPoint in .NET. This works but we can't use it due to the zooming in mechanism that it uses. Can anyone suggest an alternate algorithm?

    tia,
    chance.

  2. #2
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433

    Re: How to get address from Lat/Long?

    Hi,

    Something like this:
    Code:
    Location loc = map.GetLocation(lat, lon, 1);
    loc.GoTo();
    FindResults streetResults = map.ObjectsFromPoint(map.LocationToX(loc), map.LocationToY(loc));
    foreach (object o in streetResults) {
      ...

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Getting the lat/long from an address
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 06-24-2010, 01:49 PM
  2. Find address within an X radius from an address
    By jparker in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 06-24-2008, 09:26 AM
  3. Need C# example - address to lat/long
    By tacaldo in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 03-29-2007, 11:05 AM
  4. Adding pushpins by lat/long or address using MPC in MSAccess
    By GM in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 11-01-2004, 12:00 PM
  5. Get address of lat/long
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 05-13-2004, 10:54 AM

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 26 27