MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Mappoint + COM + PHP

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


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

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



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-10-2005
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Mappoint + COM + PHP

Hi,

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", "", "");
I get error:
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 05-10-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
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", "", "");
Or something similar, because I dont know the exact syntax of PHP
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 05-10-2005
Winwaed's Avatar
Mapping-Tools.com
Red Belt
 
Join Date: Feb 2004
Posts: 899
Blog Entries: 10
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
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
mappoint, php


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


All times are GMT -5. The time now is 05:13 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


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