Skip to content

Instantly share code, notes, and snippets.

@athphane
Last active July 1, 2018 12:05
Show Gist options
  • Save athphane/b5d14a2a3cce90d6574d9590b2bb8e16 to your computer and use it in GitHub Desktop.
Save athphane/b5d14a2a3cce90d6574d9590b2bb8e16 to your computer and use it in GitHub Desktop.

Namaadhu Vaguthu API Docs

GET /islands

format (string):
default: xml
supports: json, xml

lang (string):
default: null
supports: dv, en

loc (string):
default: atoll
supports: atoll, island, coords

radius (int):
default: 10
supports: integer search radiusm in KM
nodet: to be used with loc coords

island (string):
default: T10
supports: island reg no, isles id, db id

qryby (string):
default: reg
supports: reg, isles, id
note: to be used with loc island

atoll (int | string):
default: null
supports: atoll code letter A-U, db id 1-21
note: to be used with loc atoll

itype (int):
default: 1
supports: 0 (all), 1(inhabited), 2 (resort), 3 (industrial), 4 (official), 5 (uninhabited)

ptimes (boolean):
default: true
supports: 1 (true), 0 (false)
note: only to be used with loc atoll and coords

details (boolean):
default: true
supports: 1 (true), 0 (false)
note: only to be used with loc atoll and coords

GET /prayertimes

format (string):
default: xml
supports: json, xml

lang (string):
default: null
supports: dv, en

loc (string):
default: island
supports: island, coords

coords (string):
default: 4.175030,73.509880
supports: latitude,longitude
note: to be used with loc coords

radius (int):
default: 10
supports: integer search radius in km
note: to be used with loc coords

island (string):
default: T10
supports: island reg no or isles id or db id
note: to be used with loc island

qryby (string):
default: reg
supports: reg, isles, id
note: to be used with loc island

range (string):
default: day
supports: day, month, next

date (string):
default: current date
suports: date in the format d-m-Y

month (int):
default: null
suports: 1-12

year (int):
default: current year
suports: year in the format Y note: only to be used with range month

time (string):
default: current time
suports: time in the format H:i
note: only to be used with range next

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment