here's my cmx version
I want to know user current location so I use
xx.xx.xx.xx/api/location/v2/clients for returning active client detail which includes real-time current location
my problem is when I get mapCoordinate in x y I don't know that what x y really mean (does it have any relation to my building picture from xx.xx.xx.xx/api/config/v1/maps/imagesource/domain_0_1500368087062.jpg )
So, I want to know how I really know that where the current location of user from the mapCoordinate
for example, if I want red dot (user current location) in my IOS app
I get this floor image by call this api
cmxlocationsandbox.cisco.com/api/config/v1/maps/imagesource/domain_1_1421088051901.png (this will return floor image)
and I put this pic on my IOS app
and I get current user location by call this api cmxlocationsandbox.cisco.com/api/location/v2/clients
how would I know that where I must place the red dot on?
The floor map is oriented from the upper left hand corner (0,0), with increasing x values to the right and increasing y values down. When the floor map is created in Prime Infrastructure, the entire area of the map is included in the inclusion region, which may lay outside the building.
The geoCoordinate locations are based on GPS markers placed on the floor map in Prime Infrastructure.
Thanks for the answer Matt
but I just realize that my API return geoCoordinate = null
Can I use mapCoordinate instead geoCoordinate for get user current location
but I don't know any relation about the map that store in PI and mapCoordinate (Ex.map scale)
Any solution ?
For geoCoordinates please see the discussion thread Re: Latitude and longitude coordinates in Location API
Yes, you can use either geoCoordinates or x,y values which are both configured in Prime Infrastructure when you create the map. The geoCoordinates (with correct GPS markers) are optional when creating the map. The map scale is set when the boundaries of the map are defined for x,y coordinates.