作者:糖果

hpfeeds-client是一个Python写的客户端程序。

第一种是在世界地图上,点亮一个点:

hpfeeds-client --host localhost  -p 10000 -i honeymap -s cfdd6a68be69464666ae60b66dae69f6 -c geoloc.events publish "{countrycode:'NA', latitude:37.7749, longitude:-122.4194, city:'San Francisco'}"

另一种是在世界地图上,点亮二个点:

hpfeeds-client --host localhost  -p 10000 -i geoloc -s cfdd6a68be69464666ae60b66dae69f6 -c geoloc.events publish 
'{"countrycode":"NA", "latitude":37.7749, "longitude":-122.4194, "city":"San Francisco","countrycode2":"NA", "latitude2":37.7749, "longitude2":50.4194, "city2":"Bei Jing"}'