Locations API

About

The locations API allows developers to query against the Utah.gov location database. Use this api to get contact and address (including latitude and longitude) information.

Parameters

Type of Parameter Required Value
zipCode Only Utah ZIP Codes
locationType Numerical Value
Type (either) jSON, HTML
List Size Up to 50
Location Type Code
City 95
City Building 85
County Building 97
Library 89
Park 91
School 87
School District 93
State Park 103
ZIP Code 101

Examples

Sample Query

curl -H "Accept:application/json"

"http://www.utah.gov/locationaware/getNearByLocations.html?zipCode=84111&locationType=1&type=json&listSize=10"

Sample Result (jSON)

[
	{
		street:"554 South 300 East",
		city:"Salt Lake City, UT ",
		name:"Utah Housing Finance Agency",
		url:"",
		phone:"",
		lat:"40.7574",
		lon:"-111.883"
	},
	{
		street:"645 S 200",
		city:"Salt Lake City, UT ",
		name:"Law & Justice Center",
		url:"",
		phone:"",
		lat:"40.7553",
		lon:"-111.885"
	},
	{
		street:"720 S 200",
		city:"Salt Lake City, UT ",
		name:"Workforce Services Metro",
		url:"",
		phone:"",
		lat:"40.7537",
		lon:"-111.885"
	},
	{
		street:"350 East 500 South",
		city:"Salt Lake City, UT ",
		name:"Office of Crime Victim Reparations",
		url:"",
		phone:"",
		lat:"40.7581",
		lon:"-111.881"
	},
	{
		street:"660 S 200",
		city:"Salt Lake City, UT ",
		name:"Div of Rehab/Downtown District Office",
		url:"",
		phone:"",
		lat:"40.7554",
		lon:"-111.887"
	},
	{
		street:"160 E 800",
		city:"Salt Lake City, UT ",
		name:"Courts (3rd District Juvenile Court)",
		url:"",
		phone:"",
		lat:"40.7516",
		lon:"-111.886"
	},
	{
		street:"450 S State St",
		city:"Salt Lake City, UT ",
		name:"Scott Matheson Courthouse",
		url:"",
		phone:"",
		lat:"40.7602",
		lon:"-111.889"
	},
	{
		street:"450 S State St",
		city:"Salt Lake City, UT ",
		name:"Parking Terrace (Matheson Crthouse)",
		url:"",
		phone:"",
		lat:"40.7602",
		lon:"-111.889"
	},
	{
		street:"230 S 500 E #170",
		city:"Salt Lake City, UT ",
		name:"State Ins Dept. - Fraud Div",
		url:"",
		phone:"",
		lat:"40.7646",
		lon:"-111.877"
	},
	{
		street:"230 S 500 E #170",
		city:"Salt Lake City, UT ",
		name:"State Ins Dept. - Fraud Div",
		url:"",
		phone:"",
		lat:"40.7646",
		lon:"-111.877"
	}
]

Sample Result (HTML)

Utah Housing Finance Agency
Law & Justice Center
Workforce Services Metro
Office of Crime Victim Reparations
Div of Rehab/Downtown District Office
Courts (3rd District Juvenile Court)
Scott Matheson Courthouse
Parking Terrace (Matheson Crthouse)
State Ins Dept. - Fraud Div
State Ins Dept. - Fraud Div

Feedback

Was the information on this page helpful?

How can this page be improved?