Nova Places API Pub

The Places API lets you search for place information using a variety of categories, including establishments, prominent points of interest, and geographic locations. You can search for places either by proximity or a text string. A Place Search returns a list of places along with summary information about each place.

This package uses Google Places API and requires an API key. Please check this link out to obtain your API key.

🍭 Remember to enable Places API for your API key.

Sample Usage

import 'package:nova_places_api/nova_places_api.dart';

final placesApi = PlacesApi(apiKey: 'api-key')..setLanguage('en');

// first
print('Places autocomplete');
final response1 = await placesApi.placeAutocomplete(
  input: 'amoeba',
  location: LatLngLiteral(
    lat: 37.76999,
    lng: -122.44696,
  radius: 500,
  strictBounds: true,
  types: ['establishment'],
  // sessionToken: generateSessionToken()

if (!response1.isSuccess) {
} else {
  final predictions = response1.predictions; => p.description).forEach(print);

// second
print('\nQuery autocomplete');
final response2 = await placesApi.queryAutocomplete(
  input: 'pizza near San Francisco',
if (!response2.isSuccess) {
} else {
  final predictions = response2.predictions; => p.description).forEach(print);

if (response1.isSuccess && response1.predictions.isNotEmpty) {
  // third;
  print('\nQuery place detail');
  final response3 = await placesApi.getPlaceDetails(
    placeId: response1.predictions.first.placeId!,
  if (!response3.isSuccess) {
  } else {