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
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.
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
- brubell
- Learn User Page
- Posts: 2011
- Joined: Fri Jul 17, 2015 10:33 pm
Re: Maps feeding
Hi Kalyan,
You'll want to send the lat, lon, and ele along with the request's "value". Here's an example using CURL:
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
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
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
Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.