Web Location On Labs
-
Upload
tor-bjoern-minde -
Category
Technology
-
view
409 -
download
0
description
Transcript of Web Location On Labs
Web Location
A labs.ericsson.com enablerhttp://labs.ericsson.com/apis/web-location/
2
Web Location
Retrieve the location of your users from their mobile phones
A simple web interface to access the location of a user in the mobile phone network
Maintain user integrity and privacy (end-user consent is managed by the API)
Powered by Ericsson IPX
3
Why Web Location?
Get the accurate, current position of the users of your web applications (accuracy ~ 100 – 1km)
Locate users and at the same time maintain user integrity and privacy (end-user consent is managed by the API)
No need for users to input their location or install any applications or browser plugins
Web Location is the quickest, simplest, and most accurate way of positioning users in location based web applications
4
Main Features of Web Location
Powerful location component easily embedded into any web page
Enables exposure of user’s location to a web application
Get access to operator-based positioning (triangulation) via Ericsson IPX
No need for users to install any applications on their phones, and the positioning works for all types of phones
Includes management of end-user consent to give users complete control of privacy.
Easily integrated RESTful API
Free user locations up to a limit
Currently works with all operators in Sweden and Norway (more countries are coming)
5
Web Location Overview
• Your user visits your website
• You ask the Web Location API for user location
• Web Location finds the location of the user’s mobile phone
• Web Location sends the location to you
• You show the user a website customized to their exact location
• Web Location asks your user if she agrees to be located by your application
6
//Create a request for the end-user location$url = "http://mwl.labs.ericsson.net/mwlservice/resource/";$fields = array(
'msisdn' => $_POST['msisdn'],'devKey' => 'APIKEY','applicationID' => 'APPLICATIONID'
);$create_url = $url . 'location/getLocationByMsisdn';
//Make the request$response = http_post_fields($create_url, $fields, NULL, array("timeout"=>10), $info);
//Extract the body from the response and print it$http_obj = http_parse_message($response);print("Response = ".$http_obj->body);
Web Location API
Retrieve the location of your users with a simple call to the Web Location API
Simple example in PHP (get user location and display it):
7