Code examples

We have a project in Github with multiple examples available. We explain how to configure the Situm SDK in your application, how to initialize it and how to start to work with us. The examples included are the following:

Fetch buildings
Fetch the list of buildings belonging to a user
Fetch information from building
Download building information: name, location, dimensions, etc...
Start the positioning
How to start the positioning in a building
Show a building in Google Maps
How to show a building floor in Google Maps
Show and animate current position in Google Maps
How to show and animate the device current position
Show POIs (points of interest) in Google Maps
How to show a list of POIs that belongs to a building
Compute a route
How to calculate a route between two points
Show route between POIs in Google Maps
How to show a route between two points inside a building
Get realtime updates
How to retrieve the position of the devices that are currently inside a building
List all the events, with its info, in a building
How to show all the events of a building and the data for each one
Calculate if the user is inside an event
How to check if the user location is inside an event
Show geofences and calculate intersection with a point
Draw geofences over a map and check if a position is inside or passing over the geofence