Product

Introducing Places, powered by Facebook

by

Nick Patrick

on

June 1, 2017

We're excited to introduce our newest context type, Places. Radar can now tell you when a user visits a place, chain, or category even if you haven't set up a geofence for that place.

Radar integrates with Facebook Places, the same place database that powers Facebook and Instagram, with over 140M places worldwide.

https://cdn.prod.website-files.com/67606084339203323d92a420/67881ee814df2cb41d6076f6_places.png

All place events have confidence levels, and places may have one or more categories and a chain. Radar supports hundreds of categories and thousands of U.S. and international chains.

Places works in the foreground and in the background with stop detection, and it works in dense urban areas.


Places can be used with our other context types, Geofences and Insights, to add location context and tracking to your apps with just a few lines of code.

For example, to do something if a user is at an airport and traveling, on iOS:

Radar.trackOnce { (status, location, events, user) in
    if let place = user?.place,
       let insights = user?.insights,
       place.hasCategory("airport"),
       insights.state.traveling {
        // do something
    }
}

Or, to do something when a user stops at a Starbucks, on Android:

public void onEventsReceived(Context context,
                             RadarEvent[] events,
                             RadarUser user) {
    for (RadarEvent event : events) {
        if (event.type == RadarEventType.USER_ENTERED_PLACE &&
            event.confidence == RadarEventConfidence.HIGH &&
            event.place.isChain("starbucks")) {
            // do something
        }
    }
}

https://cdn.prod.website-files.com/67606084339203323d92a420/67881ee914df2cb41d607759_place.png

That's it!

You can accept or reject events after user check-ins or other forms of verification. Event verifications make Radar and Facebook smarter over time.


With Geofences, Insights, and now Places, Radar is the most powerful, flexible, developer-friendly location platform for mobile apps.

https://cdn.prod.website-files.com/67606084339203323d92a420/67881ee814df2cb41d607705_context.png

All customers can start using Places today. See the Places documentation.

Not a customer yet? Visit our home page to get started. We can't wait to see what you'll build!

It's time to build

See what Radar’s location and geofencingsolutions can do for your business.