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

Reverse geocoding with c#

This is a discussion on Reverse geocoding with c# within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi Im using a algorithm I found on one of the Mp2k articles with regrds to reverse geocoding, however this ...

  1. #1
    ayazaliuk is offline Junior Member White Belt
    Join Date
    Oct 2004
    Posts
    1

    Reverse geocoding with c#

    Hi Im using a algorithm I found on one of the Mp2k articles with regrds to reverse geocoding, however this algorithm is only useful for places where ST level mapping is availabe, for exmaple, if I am using MapPoint Europe 2004 then this algorithm will do the job for lat/longs for that area around europe, but if I have a lat/long say from algeria then the algorithm will not work..1) I just wanted to confirm that it is not possible to get the location info even if it is city name/town name or distance from a particular town, for places like africa or say middle east with mappoint europe unless I use MapPoint world. 2) to call the mappoint world web service is a bit costly as then the app I am developing will become internet dependant and this could lead to other problems when the net crashes or we have server problems, thus is there another way of doing it?.. we've got a copy of Manifold and i was thinking of using Manifold to geocode world data and then georeference using that table but then getting this type of information is very costly and something which I would like to avoid.. the alternative is to use the algorithm I have to get location info for lat/longs that belong in europe and North America as we have both copies of those apps.. but wat to do wen it comes to the rest of the world is an issue I need some advice on... Many thanks Guys for yor help

  2. #2
    markwilding is offline Junior Member White Belt
    Join Date
    Jun 2005
    Posts
    2

    reverse geocoding

    Hi,

    I have been trying to find an address from gps coordinates for ages with no success,

    Do you have some code for doing reverse geocoding in mappoint that can do this ? if so can you possibly mail me with it ?

    Thanks in advance

    Warm Regards

    #Mark Wilding

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

    Re: reverse geocoding

    Hi Mark,

    Quote Originally Posted by markwilding
    I have been trying to find an address from gps coordinates for ages with no success,
    Try this:

    Code:
                double lat = 51.24987;
                double lon = 4.48855;
                Map map = MP.ActiveMap;
    
                Location loc = map.GetLocation(lat, lon, 1);
                loc.GoTo();
    
                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);
                }

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

    Re: Reverse geocoding with c#

    Hi,

    Quote Originally Posted by ayazaliuk
    where ST level mapping is availabe, for exmaple, if I am using MapPoint Europe 2004 then this algorithm will do the job for lat/longs for that area around europe, but if I have a lat/long say from algeria then the algorithm will not work
    I dont know what ST level mapping is, but in the countries you mention, there is not mutch detail. So I think the best you can do to make a database of the most importand cities and make an algoritm that first find the most nearest city and then say something like: "30 km SE from Biskra". I think you can easy make sutch a database with mappoint.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Reverse Geocoding
    By Anonymous in forum News and Announcements
    Replies: 30
    Last Post: 07-26-2006, 12:21 PM
  2. Reverse GeoCoding
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 04-16-2004, 11:56 AM
  3. reverse geocoding
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 01-26-2004, 11:15 PM
  4. Reverse Geocoding
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 01-26-2004, 01:30 PM
  5. Reverse geocoding
    By Anonymous in forum Products: Pushpin Tool, Single State Mapper
    Replies: 0
    Last Post: 01-26-2004, 12:23 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 26 27 28 29 30 31 32 33 34 35 36