SPRACINEW YORK


Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/virtuals/spraci/lib/showbanner.php on line 24
SPRACI Gadgets
 
 
   

LOGIN
Login:
Password:
New User? status



SEARCH
search tips






 


fast spraci area and nearby town/suburb search by location (lat/lon)



[HTTP GET]

endpoint: http://www.spraci.com/cgi-bin/reversegeocode.cgi

returns: The nearest SPRACI area keywords, country code, administrative area (state/province/etc) and the name of a nearby town or suburb to a given point.

Arguments:

lat:
latitude (decimal)

lon:
longitude (decimal)

format:
json or text

callback: (function name)
If provided json output is wrapped to call your javascript callback function with that name.

pretty:
Format json output to more easily see structure (for development)

If lat and lon are not provided it check for location cookie (set by "My Location" on the spraci website or mobile site). If such a cookie is found that location is used for the search.

An error message is returned if no location is provided and there is no location cookie..

Example request:

http://www.spraci.com/cgi-bin/reversegeocode.cgi?lat=-33.8780&lon=151.1841&pretty=1

Example response:

{
	"lat":	"-33.8780",
	"lon":	"151.1841",
	"placename":	"Pyrmont",
	"countrycode":	"AU",
	"adm":	"NSW",
	"key":	"x0sydney",
	"citykey":	"x0sydney",
	"statekey":	"x1nsw",
	"countrykey":	"x0aus",
	"keys":	"x1nsw x0sydney x0aus",
	"keyname":	"Sydney"
}






If you have any questions you would like to see in here please contact us



Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/virtuals/spraci/lib/showbanner.php on line 24
SPRACI Gadgets