Navitia: Add house numbers to addresses.

This commit adds the house number behind the street name if available
and gives a way to define other formats like in France
where the house number comes before the street name.
This commit is contained in:
Torsten Grote 2017-11-08 16:28:40 -02:00 committed by Andreas Schildbach
parent 8b2488e807
commit 42f9c21145
6 changed files with 47 additions and 1 deletions

View file

@ -89,4 +89,10 @@ public class ParisProvider extends AbstractNavitiaProvider {
protected String getLocationName(String name) {
return WordUtils.capitalizeFully(name);
}
@Override
protected String getAddressName(final String name, final String houseNumber) {
return houseNumber + " " + name;
}
}