Git Product home page Git Product logo

w3w-java-wrapper's Introduction

w3w-java-wrapper

Java wrapper for the what3words web-API.

Use the what3words API in your Java applications.

Methods

ScreenShot

Code Samples

String apiKey = "my-super-w3w-apikey";
What3Words w3w = new What3Words(apiKey);
String[] words = {"goldfish", "fuzzy", "aggregates"};
try {
    double[] coords = w3w.wordsToPosition(words);
    System.out.println(coords[0] +  " / " + coords[1]);
} catch (Exception e) {
    // do your error handling
}
String apiKey = "my-super-w3w-apikey";
What3Words w3w = new What3Words(apiKey);
Double[] coords = {49.422636, 8.320833};
try {
    // optionally set a different language
    String[] words = w3w.positionToWords(coords, "de");
    System.out.println(words[0] +  "." + words[1] +  "." + words[2]);
} catch (Exception e) {
    // do your error handling
}

Build

JDK and Maven need to be installed on your system.

  • Clone this repository
  • Run mvn package -DW3W_API_KEY=YOUR-API-KEY or
  • Run mvn package in case you do not want to enter your API key for test. Tests requiring API key will be skipped.
  • Under target/ you will find the file w3w-java-wrapper-<version>-jar-with-dependencies.jar which can be embedded into your Java application

Contributions

Any contribution is warmly welcome:

  • Documentation
  • Bug reporting
  • Bug fixes
  • Code enhancements

Credits

Thanks to what3words for offering such a great project and for any help we received by their team.

Also a big thank you to all who contributed to this project:

Who do I talk to?

You need more information or support? Please contact us at

info__(at)meggsimum(dot)__de

w3w-java-wrapper's People

Contributors

chrismayer avatar jstastny avatar tsamaya avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

w3w-java-wrapper's Issues

Upgrade to API v2

Hi Christian,

This repo's what3words API wrapper is currently using v1 of the what3words API. This version was deprecated on 1/6/16 and will be switched off on 30/11/16.

This is just a heads up that this is coming up; please see https://docs.what3words.com/api/v1/#version for more information.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.