Closed amenity closed 3 years ago
had the same thought. Wonder you could restrict the results by a radius from Austin
That would be cool. The state of Texas would be a safe start โ at least keep Malaysia out of the top suggestions.
Is this "Austin" clump of counties that appears on the TXDOT project tracker a formalized region, @jaime-mckeown @alan-deanda?
@amenity that area most likely encompasses the Austin District of TXDOT which includes those counties.
@amenity this is the boundary for the Capital Area Council of Governments
Thanks, @alan-deanda @jaime-mckeown.
Nathan's 2 ยข when I suggested ๐:
For address lookup it could be tighter so it is at least the city ETJ. Each city has some degree of street name overlap which might make address lookup annoying if set too large.
I think this makes sense. Could expand to CAPCOG boundaries if/when the time comes.
Sound okay, @johnclary ?
sounds good to me! assuming @mddilley is able to configure the geocoder as such...
Assuming that we can configure the geocoder to limit results to a geometry, it will probably be be done by plugging in a bounding box. This url is a query that returns a geojson bounding box of the ETL and full-purpose jurisdiction.
so @mddilley hopefully you can plug this into the geocoder!
{
"type" : "FeatureCollection",
"crs" :
{
"type" : "name",
"properties" :
{
"name" : "EPSG:4326"
}
},
"bbox" : [-97.940377028014, 30.1337172258415, -97.578205982277, 30.4648268798927],
"features" : []
}
If this doesn't work out, we do have a RESTful COA-only geocoder that is managed by CTM. we'd have to write the code to interact with it ourselves, so here's hoping we don't need to do that ๐ค
@johnclary That bounding box worked perfectly with this library - thanks for providing! ๐
oh, nice! @mddilley just realizing now that it'd probably be wise to shave off some decimal places from those bbox coordinates. Anything beyond 6 decimal places is basically a meaningless artifact of the translation from our local coordinate system to web mercator. It probably doesn't impact performance, but it maybe could?
@johnclary Thanks for the heads up about that - I'll make that small change in an upcoming PR. ๐
Chatted w/ @mddilley about an enhancement to restrict the geocoder results to the Moped "region"... Only ... I don't know how to define it. ๐
I guess "Texas" would be safe, @johnclary ?