Services

ALKMaps provides many useful services to enhance your mapping experience.

Geocoding

There are three different geocoding service functions, reverseGeocode, geocode, and simpleGeocode. The geocode and simple geocoding services allow you to find the approximate coordinates for a given street address. The reverse geocoding service instead takes in a pair of coordinates and returns the approximate address on which that point is located.

Route Services

The routing services provide a way to obtain the specific route coordinates generated from a list of provided stops/pings. There are two different ALKMaps.Map class functions, getRoutePath and getDerivedRoutePath.

Reports

The reporting service is capable of creating various different reports for a given route. The current report types to choose from are Milage, Directions, Detail, State, CalcMiles, LeastCost, and Geotunnel. There are also two different ways of obtaining these reports, one is to consume the service directly using the getReports function of the ALKMaps.Services class, and the other is to use the reportOptions parameter of the addRoute function on the routing layer.