mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-13 16:20:34 +00:00
AbstractEfaProvider: Fix coordinate parsing of station locations in mobile trips result.
This commit is contained in:
parent
a60313edf9
commit
e4c18d4dad
1 changed files with 3 additions and 3 deletions
|
@ -2817,9 +2817,9 @@ public abstract class AbstractEfaProvider extends AbstractNetworkProvider {
|
|||
if (!"::".equals(coordPart)) {
|
||||
final String[] coordParts = coordPart.split(":");
|
||||
if ("WGS84".equals(coordParts[2])) {
|
||||
final double lat = Double.parseDouble(coordParts[1]);
|
||||
final double lon = Double.parseDouble(coordParts[0]);
|
||||
coords = Point.fromDouble(lat, lon);
|
||||
final int lat = (int) Math.round(Double.parseDouble(coordParts[1]));
|
||||
final int lon = (int) Math.round(Double.parseDouble(coordParts[0]));
|
||||
coords = new Point(lat, lon);
|
||||
} else {
|
||||
coords = null;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue