locatejs
v1.0.0
Published
Easy encapsulation of location api and google maps api
Downloads
6
Readme
Locate.js
Easy encapsulation of geolocation api
Installing
- Use
npm
orgit clone
to download the module.npm install locatejs
git clone https://github.com/hkirat/locate.git
- include
locate.js
orlocate.min.js
- Initialise with
locate.init()
Methods
locate.init
- Initialises the locate variablelocate.getLatitude
- Returns users Latitudelocate.getLongitude
- Returns users Longitudelocate.getImage
- Returns Image variable to users map imagelocate.getImageLink
- Returns users map location image's linklocate.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.