This file contains hidden or 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
const fs = require('fs') | |
const grpc = require('grpc') | |
const protoLoader = require('@grpc/proto-loader') | |
var packageDefinition = protoLoader.loadSync( | |
__dirname + '/rpc.proto', | |
{keepCase: true, | |
longs: String, | |
enums: String, | |
defaults: true, |
This file contains hidden or 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("from_lat"); | |
String start_lon = request.getParameter("from_lon"); |