Abstract:
An approach is provided for generating a minimum overlapping alternative path. The approach involves receiving a constraint parameter for traversing a path between a first location and a second location. The approach also involves determining a critical portion of the path that is to be traveled to satisfy the constraint parameter, and designating a remaining portion of the path that is not the critical portion as a non-critical portion. The approach further involves calculating one or more candidate minimum overlapping alternative paths for the non-critical portion of the path. The approach further involves generating the minimum overlapping alternative path between the first location and the second location by combining the critical portion of the path with a selected one of the one or more candidate minimum overlapping alternative paths that satisfies the constraint parameter.
Abstract:
An approach is provided for providing adaptive location sampling in mobile devices. The approach involves determining one or more maneuvers from among a plurality of one or more links representing a localized area of a transportation network. Each of the one or more maneuvers is a combination of two or more adjacent links of the one or more links. The approach also involves determining a road length and a speed attribute for each link in said each maneuver. The approach further involves calculating a travel time for said each maneuver based on the road length and the speed attribute of said each link. The approach further involves calculating a sampling interval for the mobile device traveling in the localized area based on the travel time. The mobile device is configured to collect probe data using one or more sensors at the sampling interval while traveling in the localized area.
Abstract:
An approach is provided for processing and/or facilitating a processing of probe trace data to determine one or more mode indicators, wherein the one or more mode indicators include, at least in part, one or more attributes of the probe trace data. The approach involves causing, at least in part, a modeling of one or more statistical patterns of at least one pedestrian mode of transport, at least one non-pedestrian mode of transport, or a combination thereof based, at least in part, on determining one or more probabilities that one or more mode indicators are associated with the at least one pedestrian mode of transport, the at least one non-pedestrian mode of transport, or a combination thereof. The approach also involves causing, at least in part, a classification of other probe trace data as being associated with the at least one pedestrian mode of transport or the at least one non-pedestrian mode of transport based, at least in part, on the one or more mode indicators that are associated with the other probe trace data and the one or more statistical patterns.