[IMAGE: https://i.imgur.com/Jp5htz7.jpg]
This is code I worked on for my job. We had purchased a GIS system that for some reason did not have a built in street search program. In this example I use REST services with ESRI to grab the latitude and longitude from various inputs.
[IMAGE: https://i.imgur.com/o3ULQfD.png]
The most common input our users were going to input were intersections. So the input would look like
Street 1 St @ Street 2 St, Altanta, GA
Or they would simply want to enter a street address.
[IMAGE: https://i.imgur.com/HCJkAhC.png]
But I took it much further than that. Users could also enter just a street name and it would zoom them to the center of that street, they could enter just the city, or the user could enter a Point of Interest.
[IMAGE: https://i.imgur.com/iMiSZm1.jpg]
Once the list of POIs came up the user could click one and it would zoom to that location.
[IMAGE: https://i.imgur.com/kiiIzkv.png]
[IMAGE: https://i.imgur.com/o3ULQfD.png]
To download the code visit my site here
Check out my other Recent Posts!
My Intro to Steemit
Songbirds Guitar Museum presents 10,000 Days A Tribute to Tool