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
Results 1 to 3 of 3

Mappoint + COM + PHP

This is a discussion on Mappoint + COM + PHP within the MapPoint Desktop 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 ...

  1. #1
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002

    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:

    $ex = new COM("MapPoint.application");
    $ex->visible = true;
    $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


  2. #2
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004

    FindAddressResults is a method from Mappoint.Map, and ActiveMap is of that type. So I think you have to do:

    $res = $ex->ActiveMap->FindAddressResults("", "", "", "London", "", "");
    Or something similar, because I dont know the exact syntax of PHP

  3. #3
    Winwaed's Avatar
    Winwaed is offline Mapping-Tools.com Black Belt
    Join Date
    Feb 2004
    Blog Entries
    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)

    Winwaed Software Technology LLC
    See http://www.mapping-tools.com for MapPoint Tools

Thread Information

Users Browsing this Thread

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

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