Maps feeding

Moderators: adafruit_support_bill, adafruit

Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
Locked
User avatar
KalyanMatta
 
Posts: 1
Joined: Thu Apr 08, 2021 7:56 am

Maps feeding

Post by KalyanMatta »

hi,
This is Kalyan, I am feeding one variable my device latitude and longitude like this 13.56674,177.5643 i want to reflect this data to the dash box maps please give me any sample example to feed my data to the maps .


Thanking you
M Kalyan

User avatar
brubell
Learn User Page
 
Posts: 2010
Joined: Fri Jul 17, 2015 10:33 pm

Re: Maps feeding

Post by brubell »

Hi Kalyan,

You'll want to send the lat, lon, and ele along with the request's "value". Here's an example using CURL:

Code: Select all

# Send new data with a value of 42 and include optional location metadata
curl -H "Content-Type: application/json" -d '{"value": 42, "lat": 23.1, "lon": "-73.3"}'  -H "X-AIO-Key: {io_key}" https://io.adafruit.com/api/v2/{username}/feeds/{feed_key}/data
via https://io.adafruit.com/api/docs/#create-data

I'm not sure what platform you're using (Arduino? Python? something else?), the following example is for Arduino:
https://github.com/adafruit/Adafruit_IO ... cation.ino

Locked
Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.

Return to “Internet of Things: Adafruit IO and Wippersnapper”