1.0.0 • Published 9 years ago

locatejs v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
9 years ago

Locate.js

Easy encapsulation of geolocation api

Demo

Installing

  • Use npm or git clone to download the module.
    • npm install locatejs
    • git clone https://github.com/hkirat/locate.git
  • include locate.js or locate.min.js
  • Initialise with locate.init()

Methods


  • locate.init - Initialises the locate variable
  • locate.getLatitude - Returns users Latitude
  • locate.getLongitude - Returns users Longitude
  • locate.getImage - Returns Image variable to users map image
  • locate.getImageLink - Returns users map location image's link
  • locate.getAdress - Returns an array of users possible adresses. formattedAddress : Formatted Address of user address_components : Array of components of users address

Browser Support

Works best on latest versions of Google Chrome, Firefox and Safari.

1.0.0

9 years ago