/* Pray v1.2 web service. POST/GET DST corrected Timezone and either */ /* Client IP, Geography, or Coordinates to receive local Prayer Times */ /* and Qibla direction. For more information please */ /* view source of https://islamwire.com/widg/prayer.htm */ /* Ex1: https://islamwire.com/api/pray?ip=66.203.67.190&tz=-5 */ /* Ex2: https://islamwire.com/api/pray?zip=02139&country=US&tz=-5&iso=1 */ /* Ex3: https://islamwire.com/api/pray?city=Cairo&country=EG&tz=2&iso=1 */ {"calc":"Calc. method 1=Umm Al-Qura, 2=MWL, 3=Egyptian GA, 4=Karachi U, 5=ISNA. [Optional, 1=default]", "city":"City. {Geography} [Optional]", "country":"Two character ISO 3166-1 alpha-2 country code. {Geography} [Optional]", "dst":"Set to 0 to turn off daylight savings adjustment", "help":"Set to 1 to display this help. [Optional]", "highlat":"Set to 1 to return Fajr and Isha corrected for high latitudes. [Optional]", "ip":"IP address of client to geolocate. {Client IP} [Optional]", "iso":"Set to 1 to use ISO 3166 country codes instead of FIPS 10-4", "lat":"Latitude in decimal degrees. {Coordinates} [Optional]", "lon":"Longitude in decimal degrees. {Coordinates} [Optional]", "method":"Asr determination 0=Average, 1=Shafii, 2=Hanafi. [Optional, 0=default]", "mil":"Set to 1 to return time in 24-hr format. [Optional]", "state":"Two character USPS state code (for US only). {Geography} [Optional]", "tz":"Local timezone. {Time} [Required]", "zip":"5 digit postal code (for US only) that can be used instead of city and state. {Geography} [Optional]"} Important note: this API currently uses FIPS 10-4 country codes that map to our archive of geographic coordinates and place names. This functionality is expected to change to standard ISO 3166 country codes within the next year. Using the option iso=1 and ISO country codes is highly recommended.