Service Description:
You're writing an app and need to determine if what jurisidiction the user is in.
The CLV GIS Web APIs can help with that by following a few short steps.
Geocode an address or parcel
Using any geocoding service will convert the address or cross/streets you looking for into Lat/Lng coordinates
that the parcel data service will understand. The CLV GIS geocoder service takes the following parameters:
- address
(address format: [address], [city], [state])
(cross street format: [street 1] + [street2], [city], [state]
- latlng (format: ([lat],[lng])
- crossstreets (format: 'Y' or 'N')
- score (optional-default is 50)
- format (optional-default is 'xml')
- jsonCallback (optional - only used if format is json)
And it can return the following fields (the Lat/Lng you need is underlined):
- errormsg (returns error description when validation fails)
- latlng(returns geocode coordinates)
- score (returns minimum score used to filter results)
- streetno (optional: returns street number for address found)
- streetname (optional: returns street name for address found
- street1 (optional: returns first cross street found)
- street2 (optional: returns second cross street found)
- city (returns city for address found)
- state (returns state for address found)
- zip (returns zip for address found)
You can request the return information as XML (the default if you don't choose one) or JSON:
You can access this service at this URL: http://clvplaces.appspot.com/maptools/rest/services/geocode
Example with single response returned: http://clvplaces.appspot.com/maptools/rest/services/geocode?address=495 S Main St, Las Vegas, NV&score=50&format=json&jsonCallback=anyLibrary.anyfunction
Example with multiple reponses returned: http://clvplaces.appspot.com/maptools/rest/services/geocode?address=330 Valley View Blvd, Las Vegas, NV&score=50&format=json&jsonCallback=anyLibrary.anyfunction
Example with cross streets returned: http://clvplaces.appspot.com/maptools/rest/services/geocode?address=Alta Dr and Rancho Dr, Las Vegas, NV&score=50&format=json&jsonCallback=anyLibrary.anyfunction&crossstreets=Y
Determine what jurisdiction that Lat/Lng is in
The parcel data service takes any Lat/Lng and returns city parcel information that corresponds
to that location. The CLV GIS parcel data service takes the following parameters
- latlng - ex., (36.167352999999999,-115.148408)
OR
- parcel - ex., 13934201022
OR
- owner name - ex., 'City of Las Vegas'
- jsonCallback (optional)
And it can return the following fields (the PLACE you need is underlined):
- PARCEL - returns 11-digit parcel number
- PLACE - returns place name corresponding to jurisdiction
- WARD - returns ward parcel is completely within
- OWNER - returns parcel owner name
- ADDRESS1 - returns parcel mailing address 1
- ADDRESS2 - returns parcel mailing address 2
- ADDRESS3 - returns parcel mailing address 3
- ADDRESS4 - returns parcel mailing address 4
- ADDRESS5 - returns parcel mailing address 5
- STRNO - returns physical parcel street number
- STRDIR - returns physical parcel street direction (E/W/N/S)
- STRNAME - returns physical parcel street name
- STRTYPE - returns physical parcel street type
- ZIP - returns physical zip code parcel resides
- TAXDIST - returns local tax district (same as jurisdiction) that parcel resides in
- ZONING - returns current zoning for the parcel
You can request the return information as JSON only at this time:
Example: Find the parcel data for City Hall using lat/lng
http://clvplaces.appspot.com/maptools/rest/services/agsquery?latlng=(36.167352999999999,-115.148408)&jsonCallback=anylibrary.anyFunction
Putting it all together
- Geocode an address, converting it to Lat/Lng
- Using the Lat/Lng, query the parcel data service for information on that location
- Retrieve the PLACE returned from the parcel data service
- You just found out if your in the city or not!