MapService
The MapService
can be queried to get the map of the current game session, or
to convert between the different coordinate systems.
Get Map
The map used in the current game session can be retrieved using the GetMap
endpoint.
rpc GetMap(GetMapRequest) returns (GetMapResponse);
Request
message GetMapRequest {}
Response
message GetMapResponse {
Map map = 1;
}
Node to Point
Nodes are a location on the routing grid, while points are a location on the
map. A Node
can be converted to a
Point
through the NodeToPoint
endpoint, but points
cannot be converted to nodes.
rpc NodeToPoint(NodeToPointRequest) returns (NodeToPointResponse);
Request
message NodeToPointRequest {
Node node = 1;
}
Response
message NodeToPointResponse {
Point point = 1;
}