Public
Documentation Settings

Camar

GeoJSON Rule

For the Location attribute

json
"location": {
        "type": "Point",
        "coordinates": [
            120.2015625,
            -7.60787
        ]
    }

The coordinates array is consist of Longitude and Latitude Make sure that the first element is Logintude and the second is latitude. Don shuffle it. Longitude must be in the first element.

Push notification

Everytime there is a new earthquake, service will send a push notification to user using Firebase Cloud Messaging.

The body of the notification will consist of:

  • Data
  • Notification

Data

Data that being sent inside the notification will consist only of a single map data

  • "data":

Notification

Notification contains two data:

  • Title
  • Body

Title will always be a string "Warning".

The body it self will contain much longer string.