Community of MapPoint and Virtual Earth Users and Developers
This is a discussion on MapPoint 2002 - Reverse Address Lookup's in Delphi.. within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Nightmare :( we have only decided to use MapPoint on the assumption that it could handle post-code/reverse look-ups.....
| |||||||
| Today's Posts | Twitter Feed | Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
|
Thanks for the response peeps :) Has anyone got an example without any underlying features i.e. a function that has been written specifically to do the job of reverse look-ups, its hard enough translating VB code to Delphi it just makes it 10 times harder when there is a load of irrelevant code :(
__________________ "If it ain't broke don't fix it!" |
| |||
|
Update :( I spent a bit of time this afternoon translating the above function from VB to Delphi, and im encountering the same problem, in the VB code you are able to access FindResults.Item[i].StreetAddress but in Delphi you must typecast the FindResults.Item[i] as a Location type BUT when I type case an Item from FindResults as Location it throws an exception: e.g. "(Location(mpResults.Item[oleItem]).StreetAddress" I believe this is due to the fact that FindResults can contain objects other than Location and the item I am attempting to type cast is not of Location type, trouble is Delphi does not allow me to do use standard "IS object of Type" expression with these objects :( I have even started to think about resorting to API calls to the MapPoint application but thats going to be a nightmare due to the threaded nature of this application. Double Doh!
__________________ "If it ain't broke don't fix it!" |
| |||
|
Since my last post I have actually made some significant progress :) I've used Walt Cygan idea of taking two points on the globe and using them as a cross section to work out the Lat/Long of a given location, I have then used this Lat/Long to find the nearest Road which I can then obtain the needed details from. Im a happy bunny yet again :)
__________________ "If it ain't broke don't fix it!" |
![]() |
| Tags |
| address, delphi, lookup, mappoint 2002, reverse |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Getting address information of location object in delphi? | Sheridan | MapPoint 2006/2009 Discussion | 1 | 03-07-2003 08:37 AM |
| Open a map of a special address with Delphi | Rita P. | MapPoint 2006/2009 Discussion | 4 | 02-10-2003 05:02 PM |
| Address Verifier with Delphi | yelmaci | MP2K Magazine Articles | 4 | 01-21-2003 11:19 AM |
| MapPoint reverse geocoding | Anonymous | MapPoint 2006/2009 Discussion | 2 | 01-03-2003 09:13 AM |
| Reverse Geocoding with MapPoint 2002 | Anonymous | MP2K Magazine Articles | 0 | 09-25-2001 11:48 PM |
Antalya Holiday
Check out the Antalya holiday options through UlookUbook and find amazing offers that suit your pocket...