Created
December 20, 2010 18:27
-
-
Save orangeman/748765 to your computer and use it in GitHub Desktop.
/route.xml?from_lat=48.2&from_lon=52.7&...
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.*; | |
import javax.servlet.*; | |
import javax.servlet.http.*; | |
public class RoutingServlet extends HttpServlet { | |
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { | |
String start_lat = request.getParameter("start_lat"); | |
String start_lon = request.getParameter("start_lon"); | |
String battery_level = request.getParameter("battery_level"); | |
... | |
String xml = createRoutingResponseXMLString(start_lat, start_lon, battery_level..) | |
response.getWriter.println(xml); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment