0 reply
0 recast
2 reactions
2 replies
0 recast
8 reactions
1 reply
0 recast
2 reactions
2 replies
0 recast
2 reactions
2 replies
0 recast
2 reactions
alright i ended up with a mix of gemini flash and http://locatenyc.io/ for intersection coords, then geo math for some buffer, and generate geoJSON from it.
e.g "3rd ave btw 60th and 70th" will use the LLM to generate JSON like this:
{
"type": "specific_street_segment",
"main_street": "3rd Ave",
"start_intersection": "60th St",
"end_intersection": "70th St",
"borough": "Manhattan"
}
Then i can get the intersections and geocode them, then generate the JSON (outside of the LLM).
Also works for more vague areas, even with typos because LLMs are great:
"anything from 14th st to 20th st, btw 1st ave and 3rd ae" =>
{
"type": "region",
"avenue_start": "1st Ave",
"avenue_end": "3rd Ave",
"street_start": "14th St",
"street_end": "20th St",
"borough": "Manhattan"
}
Computers! They did it again! 0 reply
0 recast
1 reaction