MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Reverse geocoding with c#

This is a discussion on Reverse geocoding with c# within the MapPoint 2006/2009 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 ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-30-2004
Junior Member
White Belt
 
Join Date: Oct 2004
Posts: 1
Send a message via MSN to ayazaliuk
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 06-15-2005
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 06-16-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,055
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);
            }
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 06-16-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,055
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Reverse Geocoding Anonymous News and Announcements 30 07-26-2006 11:21 AM
Reverse GeoCoding Anonymous MapPoint 2006/2009 Discussion 1 04-16-2004 10:56 AM
reverse geocoding Anonymous MapPoint 2006/2009 Discussion 1 01-26-2004 10:15 PM
Reverse Geocoding Anonymous MapPoint 2006/2009 Discussion 1 01-26-2004 12:30 PM
Reverse geocoding Anonymous Products: Pushpin Tool, Single State Mapper 0 01-26-2004 11:23 AM


All times are GMT -5. The time now is 01:26 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map

MyTravel Flights
Book MyTravel Holidays At Holiday Hypermarket. MyTravel arranges flights and accommodation for great value to great destinations.

Best Travel Agent
Book your Travel with the UK's best Travel Agent - as named at the Guardian Unlimited Travel awards.

Cheap Holidays to Turkey
If you’re looking for cheap holidays to Turkey then dealchecker.co.uk is the place for you! Our search helps you see real prices from the UK’s top holiday companies all in one go.

Barbados Holidays
Barbados holidays can be a wonderful break from the rat race or an exciting, action packed adventure. Plan the perfect holiday in Barbados.

Balearics
Before booking to the Balearics Islands make sure you check out our travel guide online. The Balearics are renowned for their vibrant nightlife but there are also some stunning Gothic cathedrals, Stone Age ruins and fishing villages.

Cheap Inclusive
Make use of our service at Travel.co.uk to help you to research cheap inclusive holidays.

Fuerteventura Holidays
Visit one of the closest Canary Islands to Africa! Book Fuerteventura holidays at On The Beach!


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 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51