All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.marcoshsc.orsApiTools.directions.parameters.Preference Maven / Gradle / Ivy

There is a newer version: 2.2.2
Show newest version
package com.github.marcoshsc.orsApiTools.directions.parameters;

import com.github.marcoshsc.orsApiTools.directions.enums.PreferenceEnum;
import com.github.marcoshsc.orsApiTools.general.enums.ORSEnum;
import com.github.marcoshsc.orsApiTools.general.superclasses.EnumParameter;

/**
 * 
 * References the "preference" query parameter, used on GET requests to the ORS API.
 * The parameter is described as in the ORS API Documentation below:
 * 	"Specifies the route preference."
 * 
 * Makes use of PreferenceEnum to map the possible values.
 * 
 * @see PreferenceEnum to see the possible values.
 * 
 * The default value is "fastest"
 * 
 * @author Marcos Henrique Santos Cunha in March 11th, 2020
 *
 */
public class Preference extends EnumParameter {
	
	private final String name = ORSEnum.PREFERENCE_PARAM.toString();

	public Preference(PreferenceEnum value) {
		super(value);
	}

	@Override
	public String getName() {
		return name;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy