com.what3words.javawrapper.request.ConvertToCoordinatesRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of w3w-java-wrapper Show documentation
Show all versions of w3w-java-wrapper Show documentation
Java library for what3words REST API.
package com.what3words.javawrapper.request;
import com.what3words.javawrapper.What3WordsV3;
import com.what3words.javawrapper.response.ConvertToCoordinates;
public class ConvertToCoordinatesRequest extends Request {
private String words;
private ConvertToCoordinatesRequest(Builder builder) {
super(builder.api);
this.words = builder.words;
}
private ConvertToCoordinates execute() {
return super.execute(api.what3words().convertToCoordinates(words), ConvertToCoordinates.class);
}
public static class Builder extends AbstractBuilder {
private String words;
public Builder(What3WordsV3 api, String words) {
super(api);
this.words = words;
}
public ConvertToCoordinates execute() {
return new ConvertToCoordinatesRequest(this).execute();
}
}
}