Nightmare :( we have only decided to use MapPoint on the assumption that it could handle post-code/reverse look-ups..
This is a discussion on MapPoint 2002 - Reverse Address Lookup's in Delphi.. within the MapPoint Desktop 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.....
Nightmare :( we have only decided to use MapPoint on the assumption that it could handle post-code/reverse look-ups..
"If it ain't broke don't fix it!"
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!"
There are currently 1 users browsing this thread. (0 members and 1 guests)