update
Web service for displaying markers, circles, and alerts on OpenStreetMap.
npm install npm start
Visit http://localhost:3000
Swagger UI documentation is available at: http://localhost:3000/api-docs
JSON schema available at: http://localhost:3000/api-docs.json
GET /api/marker?lat=<lat>&lng=<lng>&icon=<icon>&title=<title>
GET /api/circle?lat=<lat>&lng=<lng>&radius=<radius>&icon=<icon>&title=<title>
POST /api/alert?message=<message>&type=<type>
Parameters:
message
type
Example:
curl -X POST "http://localhost:3000/api/alert?message=Server%20Error&type=danger"
GET /api/alerts
POST /api/alerts/clear
POST /api/alert
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
OpenStreetMap Service
Web service for displaying markers, circles, and alerts on OpenStreetMap.
Quick Start
Visit http://localhost:3000
API Documentation
Swagger UI documentation is available at: http://localhost:3000/api-docs
JSON schema available at: http://localhost:3000/api-docs.json
API Endpoints
Add Marker
Add Circle
Create Alert
Parameters:
message(required) - Alert text contenttype(optional) - Alert style: danger (red), warning (orange), info (blue), success (green). Default: dangerExample:
Get Alerts
Clear All Alerts
How Alerts Work
POST /api/alert, the alert is stored on the server