Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Troubleshoot Incorrect Latitude and Longitude (SDK)

Go through these steps if the SDK returns invalid latitude and longitude values.

Prior to troubleshooting, ensure that you are using the correct API Callbacks:

To troubleshoot incorrect latitude and longitude:

  1. In the Juniper Mist™ portal, open the floorplan, click Add VBeacon, and then drag the virtual beacon (vBeacon) to any point on the floorplan.

    Select a position that you can easily identify later when looking at your site on Google Maps or Apple Maps. For example, drag the vBeacon to a corner of the building.

    Note:

    If you need general information about adding vBeacons, see Add Virtual Beacons to a Floorplan.

    Location of the X and Y values
  2. Copy and save the X and Y values, which appear near the lower-right corner of the page.
  3. Drag the vBeacon to a new, identifiable position and save the X and Y values. Then, repeat this step for one more point on the floorplan.
    You should now have the X and Y values for three identifiable points on the floorplan.
  4. Click Cancel so that you do not save the vBeacon.
  5. Close the floorplan.
  6. In Google Maps or Apple Maps, complete these steps to get the latitude and longitude values for the points that you selected on the floorplan:
    1. Go to the map location for your site, and zoom in.
    2. For each point that you selected on your floorplan, click the corresponding point on the Google Map or Apple Map, and save the latitude and longitude values.

      As shown in the following illustration, the points on the map need to correspond to the points that you select on your floorplan:

      Example: Latitude and longitude on an Apple or Google Map

      For more information, go to the support site for Google Maps or Apple Maps.

      Suggested topics:

      Note:

      The links are suggestions only. For up-to-date information, search the Google or Apple support site.

    After completing the preceding steps, you should have the latitude and longitude values for the same three points that you identified on your floorplan.
  7. Go to the GeoRefParamv2 payload, add the latitude and longitude values that you just obtained, and check the sample payload. See the following sample payload.

    The following values match the coordinates shown:

    • lat_lon X value—This is the latitude coordinate.

    • lat_lon Y value—This is the longitude coordinate.

  8. Add the PUT request for the GeoRefParamv2 payload into the maps API. /api/v1/sites/:siteID/maps/:mapID

    By default, the SDK returns invalid latitude and longitude values if the GeoRefParams is not configured in the maps API.

Additional Troubleshooting

If the SDK encounters an error, it calls the didErrorOccur method, as follows:

The SDK displays details of the errors in the following two values:

  • errorMessage of type NSString

  • errorType of type ErrorType Enum

For help, see the Integration Steps section of the Github Wiki.

iOS SDK Github Wiki

Android SDK Github Wiki