Does anyone have a working findaddress code sniplet or could anyone tell me how do I use the returning idispatch to focus my map on that point.
Regards,
Tom
This is a discussion on delphi mp2k4 findaddress within the MapPoint Desktop Discussion forums, part of the Map Forums category; Does anyone have a working findaddress code sniplet or could anyone tell me how do I use the returning idispatch ...
Does anyone have a working findaddress code sniplet or could anyone tell me how do I use the returning idispatch to focus my map on that point.
Regards,
Tom
i figured it out
Tom
Please share![]()
~ Order MapPoint MapPoint 2013 Here and Get Free Access to the MapForums Downloads ~
~~
~ Upgrade to Get Access to the MapForums Downloads ~
I am glad you figured it out. Now I need the answer too. So if you could post your snippet of code for using FindAddress or if anyone else could post one that would be great. Thanks
Eric Brooksby
Hi,
From the top of my head:
I like to ask everyone to give also feedback if solution is found ...It will benefit others too !Code:var i: OleVariant; Loc: Variant; AddrResults: FindResults; Country: OleVariant; begin // fill in City, Street, etc... AddrResults := Map.FindAddressResults(Street, City, '', '', PostalCode, Country); if AddrResults.Count > 0 then for n := 1 to AddrResults.Count do begin i := n; Loc := AddrResults.Item[i]; // here you have all these things: // Loc.StreetAddress.Street; // Loc.StreetAddress.City; // Loc.StreetAddress.postalcode;
rgds, Wilfried Mestdagh
www.mestdagh.biz
www.comfortsoftware.be
www.expertsoftware.be
MapPoint coding demo
MapPoint 2011 available, buy now
There are currently 1 users browsing this thread. (0 members and 1 guests)