Location retrieval API 0.1.0-rc2
OAS 3.0
https://developer.orange.com/ope-contents/channels/87afd7365baec589/offers/kDSbOYCTWnAg6QJb/products/g4J6AmDzKqwf7fsv/contents/swagger/5zjDRE5hGdRKcKO4/Location retrieval v0.2 OD.jsonThis API provides the ability to retrieve a device location.
Introduction
With this API, customers can retrieve the area where a certain user device is localized. The area provided in the response could be described:
- by a circle determined by coordinates (latitude and longitude) and a radius.
- by a simple polygon delimited by segments connecting consecutively an array of coordinates (points). The last point connects to the first point to delimit a closed shape bounded with straight sides.
The retrieved shape depends on the network conditions at the subscriber's location and any of the supported shapes could be received.
The requester could optionally ask for a freshness of the localization information by providing a maxAge ("I want a location not older than 600 seconds")
The result accuracy depends on the network's ability and accuracy to locate the device.
Additionally to location information, the answer will also provide indication about the location time.
Location retrieval API could be useful in scenarios such as:
- Fraud protection to ensure a given user is located in the region, country or location authorized for financial transactions
- Verify the GPS coordinates reported by the app on a device to ensure the GPS was not faked e.g. for content delivery with regional restrictions
- Location-based advertising: trigger targeted advertising after retrieving the area where the user is localized
- Smart Mobility (Vehicle/bikes renting): obtain the location of a vehicle/bike to guarantee they are rented correctly
Note: Location is in most jurisdictions considered to be sensitive data and thereby consent by device owner/user must be verified before providing it to the developer.
Relevant terms and definitions
Device: A device refers to any physical entity that can connect to a network and participate in network communication.
Area: It specifies the geographical surface where a device may be physically located.
Max Age: Maximum age of the location information which is accepted for the location retrieval (in seconds).
Last Location Time : Last date and time when the device was localized.
API Functionality
The API exposes a single endpoint/operation:
/retrieve
: Retrieve where the device is localized. The operation returns:- a localization defined with a circle with center specified by the latitude and longitude, and radius for answer accuracy,
- a timestamp about location information freshness.
Further info and support
(FAQs will be added in a later version of the documentation)
https://api.orange.com/camara/location-retrieval/orange-lab/v0/
Server variables
apiRoot |