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
Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

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

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

  1. #11
    David is offline 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!"

  2. #12
    David is offline 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!"

  3. #13
    David is offline 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!"

  4. #14
    David is offline 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!"

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Getting address information of location object in delphi?
    By Sheridan in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 03-07-2003, 08:37 AM
  2. Open a map of a special address with Delphi
    By Rita P. in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 02-10-2003, 05:02 PM
  3. Address Verifier with Delphi
    By yelmaci in forum MP2K Magazine Articles
    Replies: 4
    Last Post: 01-21-2003, 11:19 AM
  4. MapPoint reverse geocoding
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 01-03-2003, 09:13 AM
  5. Reverse Geocoding with MapPoint 2002
    By Anonymous in forum MP2K Magazine Articles
    Replies: 0
    Last Post: 09-25-2001, 11:48 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