The example is based on Adam's, very useful and helpful, Postman collection here:
apic-em-samples-aradford/tools/postman at master · CiscoDevNet/apic-em-samples-aradford · GitHub
In the attached image trying to create a location, with the POST /location request. In this example got a geographicalLocation value of "-34/150". Also tried other values with varying numbers of decimal points, and also a format with a "," instead of a "/".
Not able to find a value for geographical Location that works. The second image attached shows the error.(note that the attempt with a comma separator gave a format error message).
Looking for an example of a geographical Location that does work with the 1.2 GA release .
It looks like Cupertino, but that should be "37.3230/-122.0322". It's actually
{
"locationName":"Wollongong", "geographicalAddress":"-34.416/150.883" }
This one did not work for me.
It looks like minus signs are an issue here.
{ "locationName":"Wollongong", "geographicalAddress":"-34.416/150.883" }
{ "response": { "version": 1469733244499, "startTime": 1469733244499, "endTime": 1469733244695, "progress": "Adding location has failed.", "errorCode": "Inventory collection error", "serviceType": "Inventory service", "rootId": "5dee9441-023a-4ea3-b098-4c4a9de99546", "isError": true, "failureReason": "Coordinates in geographicalAddress are invalid", "id": "5dee9441-023a-4ea3-b098-4c4a9de99546" }, "version": "1.0" }
This bug has been reported a few weeks ago, should be fixed in the future release.
- Trying to get the right format for N vs S, E vs W . Looks like it doesn't take "-" sign.
Yeah, looks like the negative sign does break it. The negative sign is typical for South and West.
Addresses with positive numbers seem to work.
Negative numbers don’t.
That works for some portion of the planet, but not all …
Comments
0 comments
Please sign in to leave a comment.