~opensatnav-admins/opensatnav/release-1.0

« back to all changes in this revision

Viewing changes to src/org/opensatnav/android/services/Router.java

  • Committer: Kieran Fleming
  • Date: 2010-12-13 13:13:48 UTC
  • Revision ID: kieran.fleming@gmail.com-20101213131348-pixo12i0wjf11jk3
Add all the missing stuff from the failed package rename

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
package org.opensatnav.android.services;
 
2
 
 
3
import org.andnav.osm.util.GeoPoint;
 
4
import org.opensatnav.android.services.routing.Route;
 
5
 
 
6
import android.content.Context;
 
7
 
 
8
public interface Router {
 
9
 
 
10
        public static final String CAR = "motorcar";
 
11
        public static final String BICYCLE = "bicycle";
 
12
        public static final String WALKING = "foot";
 
13
 
 
14
        /**
 
15
         * 
 
16
         * @param from
 
17
         *            where the user is
 
18
         * @param to
 
19
         *            where the user wants to go
 
20
         * @param vehicle
 
21
         *            one of the vehicle constants (CAR, BICYCLE or WALKING)
 
22
         * @param context
 
23
         *            reference to caller (used to get the name and version
 
24
         *            number of the program to add the user agent in network ops)
 
25
         * @return a route which may contain geopoints and optionally route instructions)
 
26
         */
 
27
        public abstract Route getRoute(GeoPoint from, GeoPoint to, String vehicle, Context context);
 
28
        
 
29
}
 
 
b'\\ No newline at end of file'