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

@ -41,4 +41,9 @@ public class FranceNorthWestProvider extends AbstractNavitiaProvider {
public String region() {
return API_REGION;
}
@Override
protected String getAddressName(final String name, final String houseNumber) {
return houseNumber + " " + name;
}
}