gchange+ lon lat source
This commit is contained in:
parent
c1e2b25a6e
commit
44c681c31a
|
@ -17,11 +17,16 @@ ipfsnodeid=$(ipfs id -f='<id>\n')
|
||||||
g1pub=$(cat ~/.ssb/secret.dunikey | grep 'pub:' | cut -d ' ' -f 2)
|
g1pub=$(cat ~/.ssb/secret.dunikey | grep 'pub:' | cut -d ' ' -f 2)
|
||||||
|
|
||||||
CESIUM="https://g1.data.le-sou.org"
|
CESIUM="https://g1.data.le-sou.org"
|
||||||
|
GCHANGE="https://data.gchange.fr" # /user/profile/2L8vaYixCf97DMT8SistvQFeBj7vb6RQL7tvwyiv1XVH?&_source_exclude=avatar._content
|
||||||
|
|
||||||
curl -sk ${CESIUM}/user/profile/${g1pub} -o ~/.zen/cache/cesium_profile.json
|
#curl -sk ${CESIUM}/user/profile/${g1pub} -o ~/.zen/cache/cesium_profile.json
|
||||||
LON=$(cat ~/.zen/cache/cesium_profile.json | jq '._source.geoPoint.lon')
|
LON=$(cat ~/.zen/cache/cesium_profile.json | jq '._source.geoPoint.lon')
|
||||||
LAT=$(cat ~/.zen/cache/cesium_profile.json | jq '._source.geoPoint.lat')
|
LAT=$(cat ~/.zen/cache/cesium_profile.json | jq '._source.geoPoint.lat')
|
||||||
|
|
||||||
|
curl -sk ${GCHANGE}/user/profile/${g1pub} -o ~/.zen/cache/GCHANGE_profile.json
|
||||||
|
LON=$(cat ~/.zen/cache/GCHANGE_profile.json | jq '._source.geoPoint.lon')
|
||||||
|
LAT=$(cat ~/.zen/cache/GCHANGE_profile.json | jq '._source.geoPoint.lat')
|
||||||
|
|
||||||
RAD="$1"
|
RAD="$1"
|
||||||
[[ ! $RAD ]] && RAD="50km"
|
[[ ! $RAD ]] && RAD="50km"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue