Drives On Route
Vizzion’s “Drives On Route” sample application
Vizzion's "Drives On Route" sample application illustrates a number of considerations when developing an application that attempts to retrieve Drives along a specific route. For more general information on retrieving Drives and Drive streams, refer to the Drives sample.
Generating the Route
Using the provided start and end address, the sample app uses a free 3rd party API to generate a route consisting of latitude/longitude pairs.
Finding Drives along the Route
The Get /drives endpoint allows a linestring to be directly specified. This option will restrict Drive results to those with a start location within 10 meters of the given linestring. The sample code requests matching Drives from the previous 24 hours, and discards any Drives that are offline.
Finding Images along the Route
Once a candidate Drive is identified, the Drive stream can be retrieved and individual image locations examined to see which are close enough to the desired route. Since the Get /drives endpoint only checks the start location of the Drive, parts of the Drive may deviate from the desired route. This sample shows how to download a selected stream, extract the latitude and longitude from the EXIF data in the images, and display any images that are within ~10m of the desired route.
Downloads
| Download | Details |
|---|---|
| Source code | Requires Visual Studio 2012 or later |