View Single Post

  #3 (permalink)  
Old 08-22-2002
David David is offline
Junior Member
Yellow Belt
 
Join Date: Aug 2002
Posts: 13
Hi Petr, as said above I am doing the same sort of thing although I am searching for the nearest road from a point so I can get a postcode.

The Map.ObjectsFromPoint method:

Code:
mpResults := mpMap.ObjectsFromPoint(mpMap.LocationToX(mpLocation), mpMap.LocationToY(mpLocation));
The above converts the Given location to a X,Y point on the Map it then searches for any Nearby Objects, roads, places of interest, towns etc..
__________________
"If it ain't broke don't fix it!"
Reply With Quote