Due to high demand expect some shipping delays at this time, orders may not ship for 1-2 business days.
0

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.
Please be positive and constructive with your questions and comments.

Maps feeding

by KalyanMatta on Fri Apr 23, 2021 5:51 am

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

KalyanMatta
 
Posts: 1
Joined: Thu Apr 08, 2021 7:56 am

Re: Maps feeding

by brubell on Fri Apr 23, 2021 9:43 am

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 | TOGGLE FULL SIZE
# 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

brubell
 
Posts: 1347
Joined: Fri Jul 17, 2015 10:33 pm

Please be positive and constructive with your questions and comments.