Giter VIP home page Giter VIP logo

goeurosampletest's Introduction

=========== GoEuroTest Program

Create a Java command line tool that takes as an input parameter a string

java -jar GoEuroTest-jar-with-dependencies "STRING"

The program takes this string and queries with it our Location JSON API: The app should use this API endpoint:

http://api.goeuro.com/api/v2/position/suggest/en/STRING

Where STRING is the string that the user has entered as a parameter when calling the tool. The API endpoint returns JSON documents like these:

[
{
_id: 377078,
key: null,
name: "Potsdam",
fullName: "Potsdam, Germany",
iata_airport_code: null,
type: "location",
country: "Germany",
geo_position: {
latitude: 52.39886,
longitude: 13.06566
},
location_id: 377078,
inEurope: true,
countryCode: "DE",
coreCountry: true,
distance: null
},
{
_id: 410978,
key: null,
name: "Potsdam",
fullName: "Potsdam, USA",
iata_airport_code: null,
type: "location",
country: "USA",
geo_position: {
latitude: 44.66978,
longitude: -74.98131
},
location_id: 410978,
inEurope: false,
countryCode: "US",
coreCountry: false,
distance: null
}
]

The endpoint always responds with a JSON array that contains JSON objects as elements. Each object, among other keys, has a name and a ge o_position key. The geo_position key is an object with latitude and longitude fields. If no matches are found an empty JSON array is returned. The program should query the API with the user input and create a CSV file from it. The CSV file should have the form: _id, name, type, latitude, longitude

goeurosampletest's People

Watchers

 avatar

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.