JavaScript Geolocation based Speedometer and Compass - #JavaScript30 21/30

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Hey Wes you are making a really good content, keep the good work coming! You deserve way more suscribers and I'm preety confident you will get them.

dvilmster
Автор

OMG soo simple, yet super usefull. Thank you!

rokzabukovec
Автор

i have tested it
Chrome: returns 'null' for both speed and heading. (implementation problem)
Edge: doesn't return null but 0.
Uc Browser: returns error 'last location provider was disabled'

to simulate my movement i used android app 'lockito' which was working well i have tested on google map and other online speedometer sites.

but still its not working. :(

uzair
Автор

It's m/s, not km/h. Multiply it by 3.6 to get km/h. Who's driving on a freeway with 35km/h or running with 3.5km/h? :D

crnk.
Автор

Great lesson. I was surprised how easy it is to access geolocation via JS. One thing, I've tried running it on my own server with SSL functioning certificate and it does not seem to be working. The heading and the speed is returned as null (the other values within the coords object are set, mind you accuracy is around 165 m). Any idea, how to improve on that?

JanHonzaPozivil
Автор

Super cool! Any info on how to get that to stream to a map?

jameygleason
Автор

It's good lesson, Please, what's the font that you used it in your text editor

davidmailler
Автор

What chrome extension do you have to get the letters in a box in your console log

Kingofqueers
Автор

wow so simple i am getting stuck since two days
can you please give me CSS i need css for that.

deepupadhyay
welcome to shbcf.ru