com.what3words.javawrapper.examples.FindPossible3waExample 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.
The newest version!
package com.what3words.javawrapper.examples;
import com.what3words.javawrapper.What3WordsV3;
import java.util.List;
public class FindPossible3waExample {
public static void main(String[] args) {
// Example texts
String[] texts = {
"Please leave by my porch at filled.count.soap",
"Please leave by my porch at filled.count.soap or deed.tulip.judge",
"Please leave by my porch at"
};
// Check each text for possible what3words addresses
for (String text : texts) {
List possibleAddresses = What3WordsV3.findPossible3wa(text);
System.out.println("Possible what3words addresses in '" + text + "': " + possibleAddresses);
}
}
}