You are on page 1of 10

Table of Content

Proof Of Concept (POC)


LocationSmart Use Case Development,
Approach and Configuration requirements
Version 0.1

Wholesale Emerging Technologies


2.1USE CASE 1: REQUEST VIEW OFFERS...............................................................3
2.1.1Use Case Flow....................................................................................3
2.1.2Technical Flow....................................................................................3
2.1.3Preconditions.....................................................................................3
2.1.4iOS Development Approach...............................................................4
2.1.5Server side Developemnt Approach..................................................4
2.2USE CASE 2: PUSH OFFERS............................................................................5
2.2.1Use Case Flow....................................................................................5
2.2.2Technical Flow....................................................................................5
2.2.3Preconditions.....................................................................................6
2.2.4iOS Development Approach...............................................................6
2.2.5Server side Developemnt Approach..................................................6
2.3USE CASE 3: DEVICE DETECTION INSIDE BUILDING VIA WIFI.................................8
2.3.1Use Case Flow....................................................................................8
2.3.2Technical Flow....................................................................................8

2.3.3Preconditions.....................................................................................9
2.3.4iOS Development Approach...............................................................9
2.3.5Server side Developemnt Approach..................................................9
1

LocationSmart Configuration

Use Case Development

2.1 Use case 1: Request View Offers


2.1.1 Use Case Flow

2.1.2 Technical Flow

2.1.3 Preconditions

XXXX

2.1.4 iOS Development Approach


Step 1
o

Step 2
o

2.1.5 Server side Developemnt Approach


Step 1
o Device App send request to Back-end Server(through rest web request) asking for
offers around 1 mile radius of device location.
o Below is the URL request done by device to server
http://localhost:8080/LocationSmartRestService/GetOffers?
radius=1000&latitude=40.51017&longitude=-74.36142
Parameters

1. radius radius in meters


2. latitude latitude of device
3. longitude longitude of device

Step 2
o Below is json response if offers are present around device location from back-end
server.

{
"OfferList":[
{
"description":" Receive 20% off at any participating Miami Coach store when you
shop our luxurious selection of handcrafted leatherwear for men and women ",
"Offer":" Receive 20% Off Your Purchase ",
"imageUrl":" http://localhost:8080/LocationSmartRestService/images/img1.png ",
"latitude":" 40.5778621 ",
"longitude":" -74.409177 "
},
{

"description":" Free Mojtio if other products cost's more then 50$ ",
"Offer":" One Free Ola Mojito(C/A) ",
"imageUrl":" http://localhost:8080/LocationSmartRestService/images/img1.png ",
"latitude":" 40.546099 ",
"longitude":" -74.338549 "
}
]
}

2.2 Use case 2: Push Offers


2.2.1 Use Case Flow

2.2.2 Technical Flow

2.2.3 Preconditions

XXXX

2.2.4 iOS Development Approach


Step 1
o

Step 2
o

2.2.5 Server side Developemnt Approach


Step 1
o When the device app starts, it send the device token and Phone number to backend server for storing. Below is the URL request done by device.
http://localhost:8080/LocationSmartRestService/RegisterDevice?
deviceNumber=10541654500&deviceToken=40.51017

o When the device is successfully registered i.e. stored on server. It will send the
acknowledgment to device with below json response

{ "result":"success" }

o Whenever back-end receives the trigger fired by Location Smart providing


latitude and longitude and Phone number, back-end send the latitude and
longitude to the device with push notification after mapping phone number and
device token.
o

After receiving the lat-long device app sends the below request for getting offers
http://localhost:8080/LocationSmartRestService/SendPush?
deviceNumber=10000&latitude=40.51017&longitude=-74.36142

Parameters
1. deviceNumber Phone number of device
2. latitude latitude of device
3. longitude longitude of device

o Below is json response if offers are present around device location from back-end
server.

{
"OfferList":[
{
"description":" Receive 20% off at any participating Miami Coach store when you
shop our luxurious selection of handcrafted leatherwear for men and women ",
"Offer":" Receive 20% Off Your Purchase ",
"imageUrl":" http://localhost:8080/LocationSmartRestService/images/img1.png ",
"latitude":" 40.5778621 ",
"longitude":" -74.409177 "
},
{
"description":" Free Mojtio if other products cost's more then 50$ ",
"Offer":" One Free Ola Mojito(C/A) ",
"imageUrl":" http://localhost:8080/LocationSmartRestService/images/img1.png ",
"latitude":" 40.546099 ",
"longitude":" -74.338549 "

}
]
}

Step 2

2.3 Use case 3: Device Detection inside building via WiFi


2.3.1 Use Case Flow

2.3.2 Technical Flow

2.3.3 Preconditions

XXXX

2.3.4 iOS Development Approach


Step 1
o

Step 2
o

2.3.5 Server side Developemnt Approach


Step 1
o When the device app starts, it send the device token and Phone number to backend server for storing. Below is the URL request done by device.
http://localhost:8080/LocationSmartRestService/RegisterDevice?
deviceNumber=10541654500&deviceToken=4065469gfh4g6jhgjhg51017
o

Parameters

deviceNumber Phone number of device


deviceToken Apple registered device token certificate.
longitude longitude of device

o When the device is successfully registered i.e. stored on server. It will send the
acknowledgment to device with below json response

{ "result":"success" }

Whenever back-end receives the trigger fired by Location Smart providing wifi SSID and
Phone number, server calculates whether the current time +30 min is schedule for the
SSID from table. If present then it send the SSID, Start Time(current time on server) and
End Time(current time on server+ 30 min) with the help of push notification to device.

User receives the push and is asked to reserve the SSID for that time.

If user decides NO then no action takes place. If YES then app send the below request to
server to reserve the conference room for that time being.

http://localhost:8080/LocationSmartRestService/ReservedWifi?
ssid=0000000000&starttime=16-07-2013 13:30&endtime=16-07-2013 14:00
o

Parameters

ssid Phone number of device


starttime startime for reserving conference room(SSID).
endtime endtime for leaving conference room(SSID).

o When the SSID is successfully reserved . It will send the acknowledgment to


device with below json response

{ "result":"success" }

Step 2

Lesson Learnt

XXXX

XXXXX

You might also like