GPS Coordinates for CMX

I have been looking at how to link CMX location data to other systems, and through the use of GPS Coordinates I can link the map in CMX to a CMX on Google Earth for instance.

This post is to detail the steps to get GPS coordinates for device locations to appear within CMX. One caveat is that outdoor areas will not bring over GPS markers

First step you need to do is add GPS markers to Cisco Prime Infrastructure:

  1. Login to Prime with the root account.
  2. Go to the map of the ground level of the building
  3. Select the Add/Edit GPS markers button

GPS Marker 1.png

  1. Click on the Add GPS Marker button and then drag each marker to a minimum of 3 locations (the further apart the better).

gps-marker-2

  1. Click on each GPS marker and add the Latitude and Longitude details. You may wish to name the GPS Marker.GPS Marker 3.png
  2. If all your floors align you can click the apply to other floor button and this will add them to the other floors. I recommend double checking each floor aligns the GPS markers to the right map location.
  3. Click the save button and then export/ import the map to CMX (I’ll write a post on this later)
  4. The GPS coordinates will now come over to CMX.

You can check the markers have come across to CMX by running the following REST API call from Postman:

https://CMX_IP_ADDRESS/api/config/v1/maps/

you should see:

"gpsMarkers": [
 {
 "name": "GPS_Marker_0",
 "geoCoordinate": {
 "latitude": -37.910085,
 "longitude": 145.132055,
 "unit": "DEGREES"
 },
 "mapCoordinate": {
 "x": 2.4574752,
 "y": 80.376854,
 "z": 0,
 "unit": "FEET"
 }
 },
 {
 "name": "GPS_Marker_1",
 "geoCoordinate": {
 "latitude": -37.910079,
 "longitude": 145.131785,
 "unit": "DEGREES"
 },
 "mapCoordinate": {
 "x": 2.5313845,
 "y": 2.5800726,
 "z": 0,
 "unit": "FEET"
 }
 },
 {
 "name": "GPS_Marker_2",
 "geoCoordinate": {
 "latitude": -37.90928,
 "longitude": 145.131822,
 "unit": "DEGREES"
 },
 "mapCoordinate": {
 "x": 178.49031,
 "y": 3.7031631,
 "z": 0,
 "unit": "FEET"
 }
 }
 ]

In the returned results.

Next you need to run the following command and confirm that the GPS coordinates are coming across for device locations

https://CMX_IP_ADDRESS/api/location/v2/clients

and you should see

 "geoCoordinate": {
 "latitude": -37.90961476588485,
 "longitude": 145.14187527555563,
 "unit": "DEGREES"
 }

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s