Community of VE/MapPoint Users and Developers
This is a discussion on Mappoint + COM + PHP within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi, Struggling a bit here so wonder if anywone can help. I have a php script that needs to call ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Mappoint + COM + PHP Struggling a bit here so wonder if anywone can help. I have a php script that needs to call on a route object. I think i can work it into mappoint. However, i cannot get the script to work for a pretty basic task: Code: $ex = new COM("MapPoint.application");
$ex->visible = true;
$ex->NewMap();
$ex->ActiveMap;
$ex->AddPushpin;
$res = $ex->FindAddressResults("", "", "", "London", "", "");
Fatal error: Call to undefined method com::FindAddressResults() in c:\Inetpub\wwwroot\map2.php on line 18 I have trawled the web and cannot find any real support for mappoint & php - this site seems to be the best. Can anyone point me in the right direction? Many Thanks ChaosT |
| |||
|
Hi, FindAddressResults is a method from Mappoint.Map, and ActiveMap is of that type. So I think you have to do: Code: $res = $ex->ActiveMap->FindAddressResults("", "", "", "London", "", "");
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| ||||
|
Regarding lack of support for PHP and MapPoint, one has to ask "Why?"! Why are you trying to use MapPoint and PHP? The EULA restricts MapPoint use for Internet (or Intranet) applications. Basically it boils down to a license per user. And a limit on web images per license (1000 I think - enough for most people, but not for automated maps) Richard
__________________ Winwaed Software Technology LLC http://www.winwaed.com See http://www.mapping-tools.com for MapPoint Tools Pre-Order MapPoint 2009 today: http://www.mapping-tools.com/mappoint2009 |