Skip to content

pjsikora/geolocation-js

Repository files navigation

geolocation

JS Geolocation class with Google Maps route drawing.

Example of code: http://dev.fedojo.com/geolocation.js/

Included examples

source/index.html - you can start geolocation watch process stop it and draw map of your route

source/traceroute.html - you can copy your array of gps positions then click button and check you route on Google map

##Public methods

getCurrentPosition returns current position (lattigute,longitude)
startWatching start watching position
stopWatching stop watching position
getCenterPoint returns center point of route (for drawing map)
getLatLangArray returns Lattitude longitude array
drawGMapWithRoute draws Google Map from setted route array or watched route array
setRouteArray set route array [longitude, latitude]
getRouteArray returns route array

Changelog

0.0.4 (1.5.2015)

  • ecmascript 6 porting (beta)

0.0.4 (1.5.2015)

  • added source/traceroute.html to trace route on google maps from added array to textarea

About

JS Geolocation class with Google Maps route drawing.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published