<commit_before>#Elevation Service

Elevation Service is a RESTFul web service that returns elevation data for any lat/long in North America.

##How it works

Elevation Service will download height files automatically from the USGS's file server, parse them, and return elevation data.

##Usage

Prerequisites: **Java 1.6**

* Clone the repository and change into it.

```
    git clone https://github.com/asinesio/elevation-service.git
    cd elevation-service
```

* Use gradle to run the app locally:

```
    ./gradlew run
```

* The app will begin running at http://localhost:3000.


## API

### elevation

Return elevation data for a given latitude/longitude. Example: `http://localhost:3000/elevation/37.331789/-122.029620`

| Method	| Response Content Types	| URL Format
| GET		| `application/json`		| `http://localhost:3000/elevation/{latitude}/{longitude}`

| HTTP Status	| Response										| Example
| 200 OK		| JSON object containing elevation in meters 	| {elevation: 100}
| 404 NOT FOUND	| JSON object with no data						| {}

## Technology Stack

Elevation Service uses the following technologies:

* Java 1.6 or later
* [Restlet 2.1](http://www.restlet.org) for the container and REST support<commit_msg>Improved README legibility with GFM<commit_after>#Elevation Service

Elevation Service is a RESTFul web service that returns elevation data for any lat/long in North America.

##How it works

Elevation Service will download height files automatically from the USGS's file server, parse them, and return elevation data.

##Usage

**Prerequisites: JDK 1.6 or later.**

Clone the repository and change into it.

```
    git clone https://github.com/asinesio/elevation-service.git
    cd elevation-service
```

Use gradle to run the app locally:

```
    ./gradlew run
```

If all went well, the app will begin listening at `http://localhost:3000`.

## API

### elevation

Return elevation data for a given latitude/longitude. Example: `http://localhost:3000/elevation/37.331789/-122.029620`

<table>
    <thead>
        <tr>
            <th>Method</th>
            <th>Response Content Types</th>
            <th>URL Format</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td><pre>GET</pre></td>
            <td><pre>application/json</pre></td>
            <td><pre>http://localhost:3000/elevation/{latitude}/{longitude}</pre></td>
        </tr>
    </tbody>
</table>


<table>
    <thead>
        <tr>
            <th>HTTP Status</th>
            <th>Response</th>
            <th>Example</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td>200 OK</td>
            <td>JSON object containing elevation in meters</td>
            <td>{elevation: 100}</td>
        </tr>
        <tr>
            <td>404 NOT FOUND</td>
            <td>JSON object with no data</td>
            <td>{}</td>
        </tr>
</table>

## Technology Stack

Elevation Service uses the following technologies:

* Java 1.6 or later
* [Restlet 2.1](http://www.restlet.org) for the container and REST support
{'fraction_non_alphanumeric': 0.1231478432663813, 'fraction_numerical': 0.028975963121501483, 'mean_word_length': 2.7367773677736777, 'pattern_counts': {'":': 0, '<': 60, '<?xml version=': 0, '>': 60, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1710280', 'n_tokens_mistral': 1041, 'n_tokens_neox': 913, 'n_words': 299}