Match closest by:





Calculate nearest locations

This sample shows how to do a spatial join between two sets of points based on the shortest stright line distance or travel time along roads using the route matrix service. In this case, the origins are fire stations, and the destinations are schools (blue dots). This analysis shows us which fire station is closest to which school. A straight line distance is a fast and simple calculation, however, in many cases travel time is more important than a straight line distance. With the Azure Maps route matrix service, additional route options can be specified, such as the travel mode, future travel times, vehicle dimensions, and much more.