Closed bimbashrestha closed 5 years ago
It looks like you can do this by calling this open street map web api:
$.get('https://nominatim.openstreetmap.org/reverse?format=jsonv2&lat=47.217954&lon=-1.552918', function(data){ console.log(data.address.road); });
create and test a function in https://github.com/code-for-chapel-hill/CrashModel/blob/master/js/geo_functions.js
(next task will be to convert coordinates on the sidebar to road names)
Resolving this for now with ea0b816d8eca4d15fbfbc03b8bd2dccc5a0ad437
May have to change this later on
It looks like you can do this by calling this open street map web api:
$.get('https://nominatim.openstreetmap.org/reverse?format=jsonv2&lat=47.217954&lon=-1.552918', function(data){ console.log(data.address.road); });
create and test a function in https://github.com/code-for-chapel-hill/CrashModel/blob/master/js/geo_functions.js
(next task will be to convert coordinates on the sidebar to road names)