Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement REST service for frontend(s) #6

Open
cleanerm5 opened this issue Jun 7, 2017 · 1 comment
Open

Implement REST service for frontend(s) #6

cleanerm5 opened this issue Jun 7, 2017 · 1 comment

Comments

@cleanerm5
Copy link

  • clarify interface with frontend team
  • implement interface
  • implement unit tests
@jrios6
Copy link

jrios6 commented Jun 25, 2017

For Range Visualisation:

GET /range?startlat=<lat>&startlng=<lng>&range=<rangeinmetres>

Query Parameters:

  • startlat - Starting Latitude (in EPSG4326 Format)
  • startlng - Starting Longitude (in EPSG4326 Format)
  • range - Remaining Range in Metres

Example:
GET /range?startlat= 48.191202&startlng=11.412721&range=50700

Response JSON Object

  • from: latitude and longitude of starting point
  • range: range used for computing vertices (in metres)
  • rangeVertices: array of points containing coordinates for plotting the range polygon

Example:

{
  "from": {
      "latitude": 48.191202,
      "longitude": 11.412721
   },
  "range": 50700,
  "rangeVertices": [
      {
         "latitude":43.7474286,
         "longitude":7.437882
      },
      {
         "latitude":43.747432136,
         "longitude":7.43323232
      },
      {
         "latitude":43.747432436,
         "longitude":7.43323232
      },
      {
         "latitude":43.7423432136,
         "longitude":7.43323232
      }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants