8.6 Census Map: Geocoded charts

The final touch to our census map will be to allow users to enter an address, and automatically get the census data charts for the geocoded location. Our application already has a “find address” that uses a geocode function, so it is just a matter of displaying the census data based on the location.

We know that the up206b.getAGSData function accepts a latitude and longitude pair, so all we need to do is call this function based on the geocoded location (line 22):

charts in New York too!

charts in New York too!

(sample code)

Leave a Reply