URL Param support

QiblaLocator now supports URL Params. With this you will now be able to create a link to qiblalocator to have it open up at your specified location. This will surely come in handy when you need to send someone a link to show them the qibla at a sepecific location.

The supported params are ‘latitude’, ‘longitude’, ‘zoom’, and ‘address’.

Use the following format to create your own links.
http://www.qiblalocator.com/?param=value&param=value&param=value

? signifies the start of the paramaters
& separates the parameters
param is the parameter name you want to pass i.e., latitude, longitude, zoom and address
value is the value you assign the parameters

Latitude and Longitude params are floating point integers
zoom accepts only integer values
address accepts strings

The following link takes you to the Holy Ka’aba in Makkah, Saudi Arabia.
http://www.qiblalocator.com/?latitude=21.42252&longitude=39.82621&zoom=12
Switch to the Satellite view to see the Ka’aba

2 Responses to “URL Param support

  • 1
    Ali
    September 28th, 2008 16:13

    I live in Montreal and the Qibla locator does not show the correct path. You may wan to re-check your algorithm.

  • 2
    Yahya
    October 17th, 2008 13:58

    Salaam,

    Are you thinking about making an iPhone app for this in the near future?

    ws

    Yahya

Leave a Reply