This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/****************************************************************** | |
* Angel de Vicente ([email protected]) | |
* https://github.com/angel-devicente/ | |
* | |
* A simple example to illustrate the use of locks with passive target | |
* synchronization (MPI RMA). | |
* | |
* We assume a type of master-worker setting, where the master process will keep a | |
* window variable (w_counter) so that everybody can keep track of the job ids | |
* being done. In this example each process, including the master, is going to do |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From: | |
----- | |
<wpt x="-16.315847" y="28.487274"></wpt> | |
To: | |
--- | |
<trkpt lat="28.487274" lon="-16.315847"> | |
<time>2014-10-03T07:08:14Z</time></trkpt> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<trkpt lat="28.487280000" lon="-16.315840000"> | |
<time>2014-10-03T07:08:14Z</time></trkpt> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<trkpt lat="28.487280000" lon="-16.315840000"></trkpt> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
""" | |
SVMyRide | |
Takes a gpx file, loads the points + calcs bearing, gets a matching SV image | |
Only produces images: convert to a video via ffmpeg, avidemux, etc | |
""" | |
import xml.etree.ElementTree as ET | |
import urllib, os, math |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -X POST -H 'Content-Type: application/gpx+xml' --data-binary @input.gpx "http://test.roadmatching.com/rest/mapmatch/?app_id=YOUR_APP_ID&app_key=YOUR_APP_KEY&output.waypoints=true" -o output.xml |