Getting Started With Web Services

Our routing and geocoding Web Services allow you to enhance and develop your own specialty applications by calling data from PC*MILER, the industry standard for commercial vehicles for more than 30 years.

With easy-to-use REST and SOAP APIs, you can generate commercial vehicle specific routes, calculate distances, and gather location information throughout the world.

What Can You Do With Web Services?

Our web services are widely used by fleet management companies, carriers and shippers in the U.S., Canada, Mexico, and Europe for applications such as rating, fuel surcharge computations, and equipment usage monitoring.

They can be used in developing native .NET based applications on your Microsoft Windows machines, Android and iOS applications on mobile devices, as well as Web browser applications.

You can also use Trimble MAPS JavaScript to build map-centric web applications that call routing and geocoding data from our Web Services.

Accessing the Service

The APIs provide a direct way to access these services via HTTP/S REST and SOAP requests.

The base URI to access HTTP REST requests is: https://pcmiler.alk.com/apis/rest/v1.0/service.svc

The base URI to access SOAP requests is: https://pcmiler.alk.com/apis/soap/v1.0/service.svc

API Key

All requests to Web Services must include a valid API Key. Go here if you need to obtain an API key.

The API Key must be supplied with every request.

For SOAP, insert the API Key in the Authorization field of the SOAP message.

<soapenv:Header>
  <alk:Authorization>{YourAPIKey}</alk:Authorization>
</soapenv:Header>

For REST, insert the API Key in the http Authorization: header or use authToken={APIKey} in the query string in the URI of the request.

https://pcmiler.alk.com/apis/rest/v1.0/Service.svc/maptile?authToken=23423421341341234&x=5&y=4&z=3

Examples

Throughout this guide, you will see interactive examples where you can both validate your API key and test any calls to our Web Services. You need to enter your key in the YOUR API KEY HERE field in order for the sample requests to return a response.