Git Product home page Git Product logo

radar-python's Introduction

radar-python

Python library for the Radar API

The Radar Python library provides convenient access to Radar's APIs from your python applications or command line.

CircleCI

Installation

You don't need this source code unless you want to modify the package. If you just want to use the package, just run:

pip install radar-python

Requirements

Python 3.4+

Usage

The radar client needs to be initialized with your project’s secret key which is available in your Radar Dashboard.

import os
from radar import RadarClient
 
# initialize client
radar = RadarClient(os.environ["RADAR_SECRET_KEY"])
 
# get a geofence by id
geofence = radar.geofences.get(id='123')
 
# list geofences
radar.geofences.list()

Full Endpoint List:

Users:

radar.users.list
radar.users.get(id='1')
radar.users.delete(id='1')

Geofences

radar.geofences.list()
radar.geofences.get(id=’123’)
radar.geofences.get(tag=’store’, externalId=’123’)
radar.geofences.list_users(id='123')
radar.geofences.create({ 'type': 'circle', ... })
radar.geofences.delete(id='123')
radar.geofences.delete(tag=’store’, externalId=’123’)

Events

radar.events.list()
radar.events.get(id='123')
radar.events.delete(id='123')
radar.events.verify(id='123', 'accept')

Context

radar.context.get(coordinates=(40.7041895, -73.9867797))

Geocoding

radar.geocode.forward(query=’20 jay st brooklyn’)
radar.geocode.reverse(coordinates=(40.7041895, -73.9867797))
radar.geocode.ip(ip=’107.77.199.117’)

Search

radar.search.users(near=[lat,long])
radar.search.geofences(near=[lat,long])
radar.search.places(near=[lat,long])
radar.search.autocomplete(query=’20 jay st’, near=[lat, long])

Routing

radar.route.distance(origin=[lat,lng], destination=[lat,lng], modes=’car’, units=’metric’)

radar-python's People

Contributors

corypisano avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.