#Location hyperty
##1. Location hyperty functionality description. Location is an App Hyperty which provides the location of user. In this implementation the location is obtained from the Geolocation APIexposed by the browser. This hyperty has been developed as a App Hyperty. It means it is executed in the same sandbox as the main web application which uses it. However it is a candidate to become a Service Hyperty (executed in a independient web worker) in further phases of the project.
Note: currently this Hyperty is limited to the browser runtime but it can adapted to be usablein the browser runtime as it uses the Gelocation API exposed by the browser. However it can be adapted to be used in the Node.js and Standalone runtimes.
##1.1 Data-schema used. It uses the Context Data schema so it is compatible with any hyperty using the same data schema.
##2. Exposed API. ###getCurrentPosition Returns current position ####Syntax locationHy.getCurrentPosition() ####Returned value Returns the Position interface. ####How to use it. locationHyp.getCurrentPosition() .then((position)=>{ console.log(position) })
###startPositionBroadcast Notify every position change to subcribed hyperties ####Syntax locationHy.startPositionBroadcast(subscribers) ####Params subscribers
List of hyperties urls. These hyperties will receive a context data object observer invitation.
####How to use it.
locationHy.startPositionBroadcast([‘
##3. Framework improvement proposals derived from Hyperty Location development.
The same described by group-chat hyperty here