locatejs
v1.0.0
Published
Easy encapsulation of location api and google maps api
Readme
Locate.js
Easy encapsulation of geolocation api
Installing
- Use
npmorgit cloneto download the module.npm install locatejsgit clone https://github.com/hkirat/locate.git
- include
locate.jsorlocate.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.
