I would like to propose two main API calls for the new features. The first is a SHALLOW general gemometry based GET for all points of intrest. The second is a DEEP GET for a single point of intrest.
GET
Paramters:
{
minLatitude: Double
minLongitude: Double
maxLatitude: Double
maxLongitude: Double
}
This call will return a shallow set of points and polygons. Here is an example:
{
points: [ (Array)
{
latitude: Double
longitude: Double
title: String
id: Int (unique)
description: String (short description of the event, maybe even truncated)
type: String (alert type)
source: String (nc4, nixle... etc)
},
{...}
{...}
]
incident_zones: [ (Array)
{
polyine: String (https://developers.google.com/maps/documentation/utilities/polylinealgorithm)
title: String
id: Int (unique)
description: String (short description of the event, maybe even truncated)
start_date: Date
end_date: Date
}
]
}
GET
Parameters:
{
id: Int
}
This would just take the id from the Rectangle call and return all the info on the object:
{
FULL detail
}
For the first call, the min and max lat/lng was used to get one rectangle area?
Is it ok for us to use {lat:, Lng:, radius:, count:} for this call ?
(lat, lng) was the current location or the pin's location. "radius" was the scope which we want to get messages.
"count" was the number of feeds we hope to get?