NEW YORK
promoters!
   
 
 


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

promoters!
 



FREE PUBLICITY


To list your event on spraci go to the ADD EVENT form and enter the details.
Its easy!