geoserver
Geoserver written in Node.JS
Last updated 4 years ago by turistforeningen .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install geoserver 
SYNC missed versions from official npm registry.

Geoserver

Build status NPM downloads NPM version Node version Dependency status

In-house Geoserver written in Node.JS.

API

Boundary

Intersect

Methods: POST Endpoint: /api/v1/boundary/intersect

Get boundaries that intersect with a given geometry structure. Or in other words return POLYGONS that a given geometry is a part of / inside of.

curl -X POST \
  -H "Content-Type: Application/Json" \
  -d '{"geojson": { "type": "LineString", "coordinates": [[ 5.32907, 60.39826 ], [ 6.41474, 60.62869 ]] }}' \
  "/api/v1/boundary/intersect"

Has the corresponding output of:

{
  "områder": [
    { "_id": "52408144e7926dcf1500004b", "navn": "Stølsheimen, Bergsdalen og Vossefjellene" },
    { "_id": "52408144e7926dcf15000025", "navn": "Byfjellene i Bergen" },
    { "_id": "52408144e7926dcf15000035", "navn": "Nordhordland" }
  ],
  "fylker": [
    "Hordaland"
  ],
  "kommuner": [
    "Samnanger",
    "Vaksdal",
    "Osterøy",
    "Bergen",
    "Voss"
  ]
}

Line

Analyze

Methods: POST Endpoint: /api/v1/line/analyze

Analyze a LineString and return some interesting properties.

curl -X POST \
  -H "Content-Type: Application/Json" \
  -d '{"geojson": { "type": "LineString", "coordinates": [[ 5.32907, 60.39826 ], [ 6.41474, 60.62869 ]] }}' \
  "/api/v1/line/analyze"

Has the corresponding output of:

{
  "length": 64781,
  "geojson": {
    "type": "LineString",
    "coordinates": [[ 5.32907, 60.39826 ], [ 6.41474, 60.62869 ]],
    "properties": {
      "start": { "type": "Point", "coordinates": [ 5.32907, 60.39826 ] },
      "stop": { "type": "Point", "coordinates": [ 6.41474, 60.62869 ] }
    }
  }
}

MIT Licensed

Current Tags

  • 2.5.0                                ...           latest (4 years ago)

9 Versions

  • 2.5.0                                ...           4 years ago
  • 2.4.3                                ...           4 years ago
  • 2.4.2                                ...           4 years ago
  • 2.4.1                                ...           4 years ago
  • 2.4.0                                ...           4 years ago
  • 2.3.1                                ...           4 years ago
  • 2.3.0                                ...           4 years ago
  • 2.2.0                                ...           4 years ago
  • 2.1.3                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (12)
Dev Dependencies (7)
Dependents (2)

Copyright 2014 - 2016 © taobao.org |