mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-18 08:19:51 +00:00
Navitia: Properly create Locations with name and place.
Allow option to fix case of location names and simplify location parsing code.
This commit is contained in:
parent
a9d009e090
commit
47f31e99c2
4 changed files with 87 additions and 38 deletions
|
@ -20,6 +20,7 @@ package de.schildbach.pte;
|
|||
import de.schildbach.pte.dto.Product;
|
||||
import de.schildbach.pte.dto.Style;
|
||||
import de.schildbach.pte.dto.Style.Shape;
|
||||
import de.schildbach.pte.util.WordUtils;
|
||||
|
||||
/**
|
||||
* @author Antonio El Khoury
|
||||
|
@ -90,4 +91,10 @@ public class ParisProvider extends AbstractNavitiaProvider
|
|||
throw new IllegalArgumentException("Unhandled product: " + product);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected String getLocationName(String name)
|
||||
{
|
||||
return WordUtils.capitalizeFully(name);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue