BerkshireCar / SpeederBot

Twitter SpeederBot
BSD 2-Clause "Simplified" License
67 stars 7 forks source link

Tweet map image #5

Open Huwkan opened 3 years ago

Huwkan commented 3 years ago

How do I get the tweet to include a map?

BerkshireCar commented 3 years ago

That data was not available when this was originally created so it was manually done after verifying the DE attributes (road) and filtering the road then using W3W in the URL.

This would be an enhancement request I'm afraid.

BerkshireCar commented 3 years ago

Here have updated the APIs with additional attributes "fc & sh" see details here by added this to the URL &responseattributes=sh%2Cfc

Looking at the returned data the SHP provide a geolocation which also indicates the functional class of 1 which I assume is M-Way SH FC GeoLocation

If correct then these attributes could be used to plot locations on a map. More research is required.

mpolom commented 3 years ago

Looking at the return for my area, it plots a path for the vehicle rather than giving a specific point. If that's the case, how do you determine where to plot your point?

BerkshireCar commented 3 years ago

Looking at the return for my area, it plots a path for the vehicle rather than giving a specific point. If that's the case, how do you determine where to plot your point?

The documentation is limited, but we know that the SU is an average speed so you could assume the mid point for example. Or you could use the start or end point and be clear Stated here or Ended here.