<commit_before># SFM API: Miscellaneous

## Base layers

`/geometries/:id.geojson` returns the country with the corresponding lowercase ISO 3166-1 alpha-2 code. The code `xa` returns all countries as GeoJSON features.

Optionally pass the query parameter `tolerance` as a floating point between 0 and 1 to simplify the returned geometries. Numbers closer to 1 will return simpler geometries. Defaults to `0.001`.

## Geometries

`/countries/:id/geometries` returns geometries. Parameters:

* `classification`: a GeoNames [feature code](http://www.geonames.org/export/codes.html).
* `bbox`: comma-separated south-west and north-east coordinates.
* `tolerance`: Floating point between 0 and 1 that determines simplicity of returned geometries.

```json
[
  {
    "type": "Feature",
    "id": 2221333,
    "properties": {
      "name": "River Tunga",
      "classification": "STM"
    },
    "geometry": GeoJSON
  },
  ...
]<commit_msg>Modify classification<commit_after># SFM API: Miscellaneous

## Base layers

`/geometries/:id.geojson` returns the country with the corresponding lowercase ISO 3166-1 alpha-2 code. The code `xa` returns all countries as GeoJSON features.

Optionally pass the query parameter `tolerance` as a floating point between 0 and 1 to simplify the returned geometries. Numbers closer to 1 will return simpler geometries. Defaults to `0.001`.

## Geometries

`/countries/:id/geometries` returns geometries. Parameters:

* `classification`: An [OpenStreetMap administrative level](http://wiki.openstreetmap.org/wiki/Tag:boundary%3Dadministrative#admin_level).
* `bbox`: comma-separated south-west and north-east coordinates.
* `tolerance`: Floating point between 0 and 1 that determines simplicity of returned geometries.

```json
[
  {
    "type": "Feature",
    "id": 2221333,
    "properties": {
      "name": "River Tunga",
      "classification": "STM"
    },
    "geometry": GeoJSON
  },
  ...
]
{'fraction_non_alphanumeric': 0.11336453458138325, 'fraction_numerical': 0.0234009360374415, 'mean_word_length': 4.158176943699732, 'pattern_counts': {'":': 12, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3474780', 'n_tokens_mistral': 628, 'n_tokens_neox': 552, 'n_words': 199}