data-for-change / anyway

ANYWAY - Car accidents map
http://www.anyway.co.il
MIT License
77 stars 244 forks source link

Google Street View coordinates #1470

Open atalyaalon opened 4 years ago

atalyaalon commented 4 years ago
  1. Check if news flash coordinates have google street view
  2. If not - find a near coordinate on the road segment or the street, that has street view. You can use accidents table - find accidents on the segment / street to get a more accurate coordinate.
  3. This coordinate will be added to the news flash table
  4. Add the coordinate to the news-flash API

This will eventually be a part of the flow of inserting a new accident news-flash

atalyaalon commented 4 years ago

@Mano3 any comments? This is an algorithm that is needed regardless of the accurate location of the news flash - since even if the location is more accurate it does not mean it has street view

Mano3 commented 4 years ago

2 is complicated, one needs to understand what is the closest coordinate within the same segment/road/street etc. such that it has street view. I would suggest checking if Google has a polygon of the road provided so it will be easier to narrow down which street view coordinates are of interest (not the closest, but the closest in the same polygon)