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

com.what3words.javawrapper.request.ConvertToCoordinatesRequest Maven / Gradle / Ivy

There is a newer version: 3.1.21
Show newest version
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();
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy