Search in sources :

Example 1 with NameFinder

use of uk.me.parabola.mkgmap.osmstyle.NameFinder in project mkgmap by openstreetmap.

the class LinkDestinationHook method init.

public boolean init(ElementSaver saver, EnhancedProperties props) {
    this.saver = saver;
    nameFinder = new NameFinder(props);
    processDestinations = props.containsKey("process-destination");
    processExits = props.containsKey("process-exits");
    return processDestinations || processExits;
}
Also used : NameFinder(uk.me.parabola.mkgmap.osmstyle.NameFinder)

Example 2 with NameFinder

use of uk.me.parabola.mkgmap.osmstyle.NameFinder in project mkgmap by openstreetmap.

the class ResidentialHook method init.

public boolean init(ElementSaver saver, EnhancedProperties props) {
    if (props.getProperty("residential-hook", true) == false)
        return false;
    this.nameFinder = new NameFinder(props);
    this.saver = saver;
    return true;
}
Also used : NameFinder(uk.me.parabola.mkgmap.osmstyle.NameFinder)

Example 3 with NameFinder

use of uk.me.parabola.mkgmap.osmstyle.NameFinder in project mkgmap by openstreetmap.

the class POIGeneratorHook method init.

public boolean init(ElementSaver saver, EnhancedProperties props) {
    poisToAreas = props.containsKey("add-pois-to-areas");
    poisToLines = props.containsKey("add-pois-to-lines");
    if ((poisToAreas || poisToLines) == false) {
        log.info("Disable Areas2POIHook because add-pois-to-areas and add-pois-to-lines option is not set.");
        return false;
    }
    nameFinder = new NameFinder(props);
    this.poiPlacementTags = getPoiPlacementTags(props);
    this.saver = saver;
    return true;
}
Also used : NameFinder(uk.me.parabola.mkgmap.osmstyle.NameFinder)

Example 4 with NameFinder

use of uk.me.parabola.mkgmap.osmstyle.NameFinder in project mkgmap by openstreetmap.

the class RelationStyleHook method init.

public boolean init(ElementSaver saver, EnhancedProperties props) {
    this.saver = saver;
    nameFinder = new NameFinder(props);
    return super.init(saver, props);
}
Also used : NameFinder(uk.me.parabola.mkgmap.osmstyle.NameFinder)

Aggregations

NameFinder (uk.me.parabola.mkgmap.osmstyle.NameFinder)4