Skip to content

A data service to serve up extra data in HOT OSM tasks

Notifications You must be signed in to change notification settings

mapcolabora/hot-dataservice

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hot-dataservice

About

This is a simple webservice that serves extra data for usage with the HOT tasking manager. Basically it just serves data from a configured folder and only returns filtered data:

http://www.domain.com/data/{x}/{y}/{z}/{file}

An example:

http://hotosm.osmsharp.com/data/563/524/10/WRI_CAR_routes_2009.osm

This returns an OSM-XML file filtered to a bounding box represented by the tile with x = 536, y = 524 and zoom = 10. You can include this extra data to load into JOSM by adding some HTML to the Per Task Instructions:

Put here anything that can be useful to users while taking a task. {x}, {y} and {z} will be replaced by the corresponding parameters for each task. For example: « This task involves loading extra data. Click here to load the data into JOSM ».

Installation

First install .NET Core, the open-sourced version of the old .NET Framework. You need the latest 1.1 version and then run the build/run scripts. The service will listen to port 5000 by default.

Ubuntu

Specific instructions on Ubuntu (tested on 16.04), for other platforms check .NET Core installation guide.

Add the dotnet apt-get feed

sudo sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ xenial main" > /etc/apt/sources.list.d/dotnetdev.list'
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 417A0893
sudo apt-get update

Install .NET Core:

sudo apt-get install dotnet-dev-1.0.0-preview2.1-003177

Clone this repo and run build or run scripts:

./run.sh

About

A data service to serve up extra data in HOT OSM tasks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 59.1%
  • C# 32.8%
  • HTML 8.0%
  • Other 0.1%