Logo Search packages:      
Sourcecode: navit version File versions

static enum projection route_projection ( struct route route  )  [static]

Returns the projection used for this route.

route The route to return the projection for
The projection used for this route

Definition at line 272 of file route.c.

References route::dst, street_data::item, map_projection(), route::pos, and route_info::street.

Referenced by route_destination_reached(), route_get_coord_dist(), and rp_coord_get().

      struct street_data *street;
      if (!route->pos && !route->dst)
            return projection_none;
      street = route->pos ? route->pos->street : route->dst->street;
      if (!street || !street->item.map)
            return projection_none;
      return map_projection(street->item.map);

Generated by  Doxygen 1.6.0   Back to index