PHP Classes

MapPoint PHP API: Access MapPoint Web services

Recommend this page to a friend!
  Info   View files View files (118)   DownloadInstall with Composer Download .zip   Reputation   Support forum (4)   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 2,500 All time: 1,542 This week: 148Up
Version License Categories
mappoint_php_api 1.0GNU General Publi...Web services, Geography
Description 

Author

This package can be used to access Microsoft MapPoint location finding and mapping Web services.

It is a port to PHP of the MapPoint API available for ASP.NET.

Innovation Award
PHP Programming Innovation award nominee
November 2005
Number 5


Prize: One copy of the Maguma Workbench
MapPoint is a powerful location mapping and finding service provided by Microsoft.

This service is available to human users from its site pages or to other sites via its Web services API.

This class provides a PHP interface to the extensive list of features that MapPoint provides by the means of its Web services API, so PHP sites may also benefit from MapPoint potential.

Manuel Lemos
Picture of Carlos Machado
Name: Carlos Machado <contact>
Classes: 1 package by
Country: Portugal Portugal
Age: 44
All time rank: 125017 in Portugal Portugal
Week rank: 312 Up7 in Portugal Portugal Up
Innovation award
Innovation award
Nominee: 1x

Details

MapPoint PHP API 1. System Requirements ---------------------- You need PHP 5.0.5 installed. 2. Configuration ---------------- Enable the soap extension in php.ini file (extension=php_soap.dll on Windows systems); Set 'soap.wsdl_cache_enabled' to 1 (one) in php.ini file. 3. Running the samples ---------------------- Place the 2 folders and index.php in a web folder. Your directory structure should look like this: aWebFolder ---------- | | --- mappoint | | --- samples | | --- index.php You'll need to set some values, such as your MapPoint Web Service username and password. Go to mappoint folder and open the file ClassLoader.php. Here, you'll find some constants definitions that you must set so that the samples work correctly. After doing that, you may test the samples by opening the file index.php in your browser. Note that you must always start by this file because i use session variables that are created there. 4. Documentation ---------------- This API is not very well documented. Why? Because the documentation already exists. You can view the Microsoft MapPoint Web Service documentation online or you can download it for free (you'll need the .NET Framework 1.1 or the Visual Studio .NET). This whole API was made based on the information of the MapPoint documentation (which, imho, is very good). 5. Bugs ------- The API will not work if you have to connect through a proxy. This a known bug of SoapClient PHP object with digest authentication. Most probably in future versions this will be fixed. Have fun!

  Files folder image Files  
File Role Description
Files folder imagemappoint (109 files)
Files folder imagesamples (7 files)
Accessible without login Plain text file ReadMe.txt Doc. How to file
Accessible without login Plain text file index.php Example Tests start page

  Files folder image Files  /  mappoint  
File Role Description
  Plain text file Address.class.php Class Contains constituent parts of an address
  Plain text file ArrayOfCountryRegionInfo.class.php Class Array of CountryRegionInfo objects
  Plain text file ArrayOfDataSource.class.php Class Array of DataSource objects
  Plain text file ArrayOfDirection.class.php Class Array of Direction objects
  Plain text file ArrayOfDouble.class.php Class Array of doubles
  Plain text file ArrayOfEntityProperty.class.php Class Array of EntityProperty objects
  Plain text file ArrayOfEntityPropertyValue.class.php Class Array of EntityPropertyValue objects
  Plain text file ArrayOfEntityType.class.php Class Array of EntityType objects
  Plain text file ArrayOfFindResult.class.php Class Array of FindResult objects
  Plain text file ArrayOfHotArea.class.php Class Array of HotArea objects
  Plain text file ArrayOfInt.class.php Class Array of integers
  Plain text file ArrayOfLatLong.class.php Class Array of LatLong objects
  Plain text file ArrayOfLocation.class.php Class Array of Location objects
  Plain text file ArrayOfSegment.class.php Class Array of Segment objects
  Plain text file ArrayOfSegmentSpecification.class.php Class Array of SegmentSpecification objects
  Plain text file CalculatedRouteRepresentation.class.php Class Contains the representation of a calculated route
  Accessible without login Plain text file ClassLoader.php Appl. Loads class definitions on demand
  Plain text file CommonServiceSoap.class.php Class Contains the methods and properties related to calling the common service
  Plain text file CountryRegionContext.class.php Class Contains the associated country or region context of a request
  Plain text file CountryRegionInfo.class.php Class Contains information about a country or region
  Plain text file CustomerInfoHeader.class.php Class Contains a customer-defined code number used to represent transactions sent to MapPoint Web Service
  Plain text file DataSource.class.php Class Contains the name, descriptions, capability, entity extent, and version number of a data source
  Plain text file DataSourceCapability.class.php Class The possible capabilities of a specified data source (DataSource object)
  Plain text file Direction.class.php Class Contains the representation of a single line in a route itinerary
  Plain text file DirectionAction.class.php Class The possible actions used in a single line in a route itinerary
  Plain text file DirectionType.class.php Class The possible types of directions for a single line in a route itinerary
  Plain text file DistanceUnit.class.php Class The possible units of measurement for measuring distances on the map
  Plain text file DriverProfile.class.php Class Contains the preferences for the times to start and end driving each day
  Plain text file ElementColor.class.php Class Defines the colors to use for rendering objects on a map
  Plain text file Entity.class.php Class Contains the ID, type, name, and description of a geographic entity|
  Plain text file EntityProperty.class.php Class Contains the name, descriptive name, and data type of a property for an entity type in a data source
  Plain text file EntityPropertyValue.class.php Class Contains a property name and value for a specific entity
  Plain text file EntityType.class.php Class Contains the categorization of a geographic entity relative to other entities
  Plain text file FilterExpression.class.php Class Represents complex logical filter expressions that filter the find results
  Plain text file FindAddressSpecification.class.php Class Contains the search specification used in the FindServiceSoap::FindAddress method
  Plain text file FindByIDSpecification.class.php Class Contains the search specification used in the FindServiceSoap::FindByID method
  Plain text file FindByPropertySpecification.class.php Class Contains the search specification used in the FindServiceSoap::FindByProperty method
  Plain text file FindFilter.class.php Class Contains the filter used when finding points-of-interest and polygons
  Plain text file FindNearbySpecification.class.php Class Contains the search specification used in the FindServiceSoap::FindNearby method
  Plain text file FindNearRouteSpecification.class.php Class Contains the search specification used in the FindServiceSoap::FindNearRoute method
  Plain text file FindOptions.class.php Class Contains search options used in the find methods
  Plain text file FindPolygonSpecification.class.php Class Contains the search specification used in the FindPolygon method
  Plain text file FindRange.class.php Class The range (first desired result and number of results) of the full result set to return
  Plain text file FindResult.class.php Class Contains a result from a find operation
  Plain text file FindResultMask.class.php Class The location elements that are optional for inclusion in a FindResult::FoundLocation
  Plain text file FindResults.class.php Class Contains the individual results from a find operation
  Plain text file FindServiceSoap.class.php Class Contains the methods and properties related to calling the find service
  Plain text file FindSpecification.class.php Class Contains the search specification used in the FindServiceSoap::Find method
  Plain text file GetCountryRegionInfo.class.php Class Used as the parameter of GetCountryRegionInfo method
  Plain text file GetDataSourceInfo.class.php Class Used as the parameter of GetDataSourceInfo method
  Plain text file GetEntityTypes.class.php Class Used as the parameter of GetEntityTypes method
  Plain text file GetGreatCircleDistances.class.php Class Used as the parameter of GetGreatCircleDistances method
  Plain text file GetInfoOptions.class.php Class Contains search options used in the FindServiceSoap::GetLocationInfo method
  Plain text file GetLineDriveMap.class.php Class Used as the parameter of GetLineDriveMap method
  Plain text file GetMap.class.php Class Used as the parameter of GetMap method
  Plain text file HotArea.class.php Class Contains the pushpin identification, as well as the label and icon areas, that are identified as being a hot area for use in creating a clickable map
  Plain text file ImageFormat.class.php Class Contains the format definitions for a map image
  Plain text file LatLong.class.php Class Contains latitude and longitude coordinates
  Plain text file LatLongRectangle.class.php Class Contains the latitude and longitude coordinates of a rectangle on the map
  Plain text file LatLongRectangleSpatialFilter.class.php Class Defines a spatial filter which returns polygons that are related to the specified LatLongRectangle
  Plain text file LatLongSpatialFilter.class.php Class Defines a spatial filter which returns only polygons that include the point specified by the LatLong object
  Plain text file LineDriveMapImage.class.php Class The image returned by the GetLineDriveMap method
  Plain text file LineDriveMapOptions.class.php Class The map rendering options for rendering a LineDrive map
  Plain text file LineDriveMapSpecification.class.php Class Contains the specifications for rendering a LineDrive map
  Plain text file Location.class.php Class Contains the representation of a location
  Plain text file MapFontSize.class.php Class The possible sizes of fonts used for map labels
  Plain text file MapImage.class.php Class Contains a map returned from the RenderServiceSoap::GetMap method
  Plain text file MapOptions.class.php Class Contains the map rendering options used with the RenderServiceSoap::GetMap method
  Plain text file Mappoint.class.php Class Contains the services that allow the access to the MapPoint Web Services
  Plain text file MapPointConstants.class.php Class Contains the MapPoint Web Service constants
  Plain text file MapPointObject.class.php Class Abstract class that represents a Mappoint object
  Plain text file MappointService.class.php Class Abstract class that represents a Mappoint service
  Plain text file MappointSoapClient.class.php Class An extension of the SoapClient PHP object
  Plain text file MapReturnType.class.php Class The possible ways to return a map image from the RenderServiceSoap::GetMap method
  Plain text file MapSpecification.class.php Class Contains the specifications for rendering a map
  Plain text file MapStyle.class.php Class The possible map styles to use for rendering a map
  Plain text file MapView.class.php Class An abstract class representing a requested map view
  Plain text file MapViewRepresentations.class.php Class Contains representations of a returned map view
  Plain text file MimeData.class.php Class Contains the map image
  Plain text file PaletteType.class.php Class The palette style to use when rendering a LineDrive map
  Plain text file PixelCoord.class.php Class Contains the coordinates of a pixel on a map image
  Plain text file PixelRectangle.class.php Class Contains the definition of a rectangle on a map image
  Plain text file Polygon.class.php Class Defines a polygon data type to be rendered on a map
  Plain text file Pushpin.class.php Class Contains the icon, label, location, and user-defined identification number of a pushpin
  Plain text file RenderServiceSoap.class.php Class Contains the methods and properties related to calling the render service
  Plain text file Route.class.php Class Represents a calculated route
  Plain text file RouteHighlightColor.class.php Class The possible colors to use for highlighting a route on a map
  Plain text file RouteItinerary.class.php Class Contains the route segments, map view representations, and summary information for a calculated route
  Plain text file RouteResultMask.class.php Class The possible elements to return with a calculated route
  Plain text file RouteServiceSoap.class.php Class Contains the methods and properties related to calling the route service
  Plain text file RouteSpecification.class.php Class Contains all the information necessary to describe a route
  Plain text file SearchOperatorFlag.class.php Class The operators available for use with the WhereClause::SearchOperator property
  Plain text file Segment.class.php Class Contains the calculated itinerary for one segment of a route
  Plain text file SegmentOptions.class.php Class Contains the preferences for how the route and map views are calculated for the specified segment
  Plain text file SegmentPreference.class.php Class The possible travel preferences for a particular route segment
  Plain text file SegmentSpecification.class.php Class Contains the specification of one segment of a route
  Plain text file SnapType.class.php Class The possible ways MapPoint Web Service works with waypoints in creating a route
  Plain text file SortDirection.class.php Class Defines the direction (Ascending or Descending) of sorting for find results
  Plain text file SortProperty.class.php Class Enables sorting the FindResults when specified with the FindFilter object
  Plain text file SpatialFilter.class.php Class An abstract base class that defines the type of filter that will be used when finding polygons
  Plain text file SpatialRelation.class.php Class Defines the spatial relation between the specified rectangle and polygons
  Plain text file UserInfoHeader.class.php Class Contains context-related information used for setting the SOAP header sent with calls to MapPoint Web Service
  Plain text file VersionInfo.class.php Class Contains a descriptive name and the related version number of components of the MapPoint Web Service
  Plain text file ViewByBoundingLocations.class.php Class Defines the requested map view by identifying the location or set of locations that the map view should encompass
  Plain text file ViewByBoundingRectangle.class.php Class Contains the latitude and longitude coordinates that define a map view based on a minimum bounding rectangle
  Plain text file ViewByHeightWidth.class.php Class Contains the definition of the map view based on distance of the width and height in kilometers or miles on the Earth's surface and a center point
  Plain text file ViewByScale.class.php Class Contains the definition of the map view based on the map scale and a center point
  Plain text file Waypoint.class.php Class Contains the start point, intermediate stops, or end point of a route
  Plain text file WhereClause.class.php Class Contains the entity property/values filters to apply to the results returned by the points of interest find methods

  Files folder image Files  /  samples  
File Role Description
  Accessible without login Plain text file find.php Example Find test
  Accessible without login Plain text file findAddress.php Example FindAddress test
  Accessible without login Plain text file findNearby.php Example FindNearby test
  Accessible without login Plain text file findNearRoute.php Example FindNearRoute test
  Accessible without login Plain text file lineDrive.php Example GetLineDriveMap test
  Accessible without login Plain text file panMapNavigation.php Example ConvertToLatLong test
  Accessible without login Plain text file route.php Example CalculateSimpleRoute test

 Version Control Unique User Downloads Download Rankings  
 0%
Total:2,500
This week:0
All time:1,542
This week:148Up
User Comments (1)
Excellent
14 years ago (kishore kumar)
80%StarStarStarStarStar