Examples of GeoNamesService


Examples of slash.navigation.geonames.GeoNamesService

    private final List<ElevationService> elevationServices = new ArrayList<>();
    private boolean loggedFailedWarning = false;

    public ElevationServiceFacade() {
        elevationServices.add(new GeoNamesService());
        elevationServices.add(new GoogleMapsService());
        elevationServices.add(new EarthToolsService());
    }
View Full Code Here

Examples of slash.navigation.geonames.GeoNamesService

                                    final PositionsModel positionsModel,
                                    final int[] rows,
                                    final OverwritePredicate predicate) {
        executeOperation(positionsTable, positionsModel, rows, true, predicate,
                new Operation() {
                    private GeoNamesService geonamesService = new GeoNamesService();

                    public String getName() {
                        return "PopulatedPlacePositionAugmenter";
                    }

                    public int getColumnIndex() {
                        return DESCRIPTION_COLUMN_INDEX;
                    }

                    public void performOnStart() {
                    }

                    public boolean run(int index, NavigationPosition position) throws Exception {
                        String description = geonamesService.getNearByFor(position.getLongitude(), position.getLatitude());
                        if (description != null)
                            positionsModel.edit(index, new PositionColumnValues(DESCRIPTION_COLUMN_INDEX, description), false, true);
                        return description != null;
                    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.