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:
Torsten Grote 2016-03-13 19:24:07 -03:00 committed by Andreas Schildbach
parent a9d009e090
commit 47f31e99c2
4 changed files with 87 additions and 38 deletions

View file

@ -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);
}
}