Getting Started with MapTP Web Services
Here are guides that show you how to get started with the MapTP Web Services - whether you are building a JavaTM, Visual C# .NET, or Visual Basic .NET client application.
- Learn how to create requests to the MapTP Web Services - within a few minutes! The examples below show step by step how to create simple client applications for example to issue a request to the MapTP Geocoder service.
- Download the most recent client stubs of the MapTP Web Services. Or, alternatively, learn how to generate client stubs from WSDLs.
If you don't have a MapTP ID and want to test the services sign up for a 30 days evaluation.
Choose the getting started guide for your programming language and environment:
MapTP Web Services for Java Client Applications
MapTP Web Services for Visual C# .NET Client Applications
MapTP Web Services for Visual Basic .NET Client Applications
Controlling Mapping Clients with MapTP Web Services
Mapping clients can be controlled via MapTP Maplet Remote Control (MRC) Service. This is useful for example if you want to push locations to your mapping client (MRC command DeclareMapTPLocation). You can also use the SetMapView MRC command to change the mapping client’s current view and for example center on the new locations.
After you went through the getting started guide, you can learn how to control mapping clients with the MapTP Web Services.
PHP 5 Examples
Download the demo page and the latest client stubs here
The demo page shows numerous example requests written in PHP5 for nearly all MapTP Web Services. You can run the examples and immediately see the result on the map.
To run the demo, perform the following steps:
1. Extract the zip file to a directory of a Web server. The Web server has to support PHP5.
2. Open the conf.php file. This file allows you to configure the demo page.
3. Replace the string “{YOUR_MAP24_ID_HERE}” in the MAP24_ID setting with the MapTP ID that was provided to you when registering for MapTP products.
4. Replace the given value of the MAPTP_SYSTEM setting (maptp15.map24.com) with the URL of the MapTP server that is associated with your MapTP ID.
5. If your MapTP ID is configured for a map region different than Europe, you have to replace the given value of the MAP setting (NT_EUROPE) with the name name of your base map.
6. Optional: If you have a custom map (DMap) that is uploaded to the MapTP server, you can insert the layer IDs of your DMap in the LAYER_IDS key. Then the DMap will be shown on the map of the demo page.
7. Start the demo by entering the URL of the demo directory in a Web browser.
Example: http://my.web.server/demo
You can find the complete example requests in the Examples directory. Moreover, the zip file contains the latest client stubs for developing MapTP Web Service client applications with PHP5.
You can find the client stubs in the subdirectory “stubs/current”. Note: The client stubs use the PHP SOAP extension.
For being able to use the client stubs the SOAP extension has to be enabled in your PHP configuration.
|