MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




MapPoint 2002 - Reverse Address Lookup's in Delphi..

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.....


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

Today's Posts Twitter Feed Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 08-21-2002
Junior Member
Yellow Belt
 
Join Date: Aug 2002
Posts: 13
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!"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12 (permalink)  
Old 08-21-2002
Junior Member
Yellow Belt
 
Join Date: Aug 2002
Posts: 13
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!"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #13 (permalink)  
Old 08-21-2002
Junior Member
Yellow Belt
 
Join Date: Aug 2002
Posts: 13
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!"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #14 (permalink)  
Old 08-21-2002
Junior Member
Yellow Belt
 
Join Date: Aug 2002
Posts: 13
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!"
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

Tags
address, delphi, lookup, mappoint 2002, reverse


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


All times are GMT -5. The time now is 02:38 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 RC2
MP2K Magazine
Visitor Map

Antalya Holiday
Check out the Antalya holiday options through UlookUbook and find amazing offers that suit your pocket...



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 52 53 54 55 56 57 58 59