A most easily usable One Trust Geo Location API wrapper in Dart

Overview

A most easily usable Geo Location API wrapper in Dart!

pub package codecov Analyzer Test

1. About

OneTrustGeoLocation is an open-sourced Dart library.
With OneTrustGeoLocation, you can easily and safely use Geo Location API made by OneTrust on your application.

This is an unofficial library.

1.1. Introduction

1.1.1. What You Can Get

It is possible to get an approximate value for the current position. Note that the values such as zipcode and longitude/latitude are approximations and are not accurate.

For more details on the response data, refer to the GeoLocationResponse class or the original JSON data.

1.1.2. Install Library

With Dart:

 dart pub add one_trust_geo_location

With Flutter:

 flutter pub add one_trust_geo_location

1.1.3. Import It

import 'package:one_trust_geo_location/one_trust_geo_location.dart';

1.1.4. Use OneTrustGeoLocation

import 'package:one_trust_geo_location/one_trust_geo_location.dart' as location;

void main() async {
  // It's very easy to call api with get function.
  // It has no class so it's better to set alias 'location' like below.
  final response = await location.get();

  if (response.status.isNotOk) {
    // Do something when it's client or server error.
    if (response.status.isClientError) {
      return;
    } else if (response.status.isServerError) {
      return;
    } else {
      return;
    }
  }

  print(response.country);
  print(response.latitude);
  print(response.longitude);
}

1.2. License

Copyright (c) 2021, Kato Shinya. All rights reserved.
Use of this source code is governed by a
BSD-style license that can be found in the LICENSE file.

1.3. More Information

OneTrustGeoLocation was designed and implemented by Kato Shinya.

You might also like...

flutter_map plugin to request and display the users location and heading on the map

flutter_map plugin to request and display the users location and heading on the map

The plugin is discontinued. Feel free to fork it or checkout similar plugins. Flutter Map – Location plugin A flutter_map plugin to request and displa

Oct 11, 2022

Google Maps Services API Client for Dart

google_maps_services_dart (EXPERIMENTAL) API Specification for Google Maps Platform This Dart package is automatically generated by the OpenAPI Genera

Nov 1, 2021

Dart API that provides sunset and sunrise times for a given latitude and longitude

Sunrise Sunset Dart API that provides sunset and sunrise times for a given latit

Dec 24, 2021

A Flutter app using Google Maps SDK & Directions API

A Flutter app using Google Maps SDK & Directions API

Flutter Maps A Flutter app using Google Maps SDK & Directions API Plugins The plugins used in this project are: google_maps_flutter geolocator flutter

Mar 18, 2022

A Flutter app using Google Maps SDK & Directions API

A Flutter app using Google Maps SDK & Directions API

Flutter Maps A Flutter app using Google Maps SDK & Directions API Plugins The plugins used in this project are: google_maps_flutter geolocator flutter

Apr 19, 2022

This is a Flutter package that uses the Google Maps API to make a TextField that tries to autocomplete places as the user types, with simple smooth animations, making a nice UI and UX.

This is a Flutter package that uses the Google Maps API to make a TextField that tries to autocomplete places as the user types, with simple smooth animations, making a nice UI and UX.

search_map_place This is a Flutter package that uses the Google Maps API to make a TextField that tries to autocomplete places as the user types, with

Oct 22, 2022

A Flutter package for place search using MapBox Api and for Static map image

A Flutter package for place search using MapBox Api and for Static map image

About This package provides easy api calls to MapBox Search API. Also, it contains an static map image generator 😆 . Maki Icons can be used now in ma

Dec 2, 2022

A car rental flutter application using firebase and google maps API

A car rental flutter application using firebase and google maps API

A car sharing & rental app using Flutter, Firebase & Google Maps APIs 🔥 About the App 🚘 hopOn is flutter based application for car sharing and renta

Dec 30, 2022

A migration of Google Maps Application with Flutter & Google Maps APIs including: Maps SDK for Android & IOS, Places API & polylines

google_maps A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if t

Mar 4, 2022
Releases(1.1.0)
  • 1.1.0(Jan 4, 2022)

    Please refer to the following release note for the updated contents

    • https://github.com/myConsciousness/one-trust-geo-location/blob/main/CHANGELOG.md
    Source code(tar.gz)
    Source code(zip)
  • 1.0.0(Dec 19, 2021)

    Please refer to the following release note for the updated contents

    • https://github.com/myConsciousness/one-trust-geo-location/blob/main/CHANGELOG.md
    Source code(tar.gz)
    Source code(zip)
  • 0.0.1(Dec 19, 2021)

Owner
Kato Shinya
Freelance software developer. Web and Batch development in Java. Also mobile development in Flutter.
Kato Shinya
A Flutter plugin to easily handle realtime location in iOS and Android. Provides settings for optimizing performance or battery.

Flutter Location Plugin This plugin for Flutter handles getting a location on Android and iOS. It also provides callbacks when the location is changed

Guillaume Bernos 953 Dec 22, 2022
Wrapper around ip-geolocation.io api

wrapper around ip-geolocation.io api

cedvdb 1 Nov 18, 2021
Flow is a water source location app that helps students of the University of Bamenda, Bambili to find/locate clean water sources.

Flow is a water source location mobile app that helps students of the University of Bamenda, Cameroon to find/locate clean water sources.

DSC UBa 12 Oct 21, 2022
Flutter Tutorial - Google Map with Live Location Tracking

Flutter Tutorial - Google Map with Live Location Tracking Build Google Map app with Live Location Tracking in Flutter. ✌   App Preview Android Preview

Samuel Adekunle 10 Dec 22, 2022
DinoRide allows you to book a trip and have dinosaurs deliver you to your desired location!

DinoRide ?? Inspiration We wanted to reimagine a modern app in a prehistoric context. We thought a taxi service but with dinosaurs would have been fun

Westdale Software Dev Club 1 Jun 30, 2022
A Flutter package for iOS and Android for picking location and images.

location and image picker package for Flutter A Flutter package for iOS and Android for picking location and images. Demo Installation First, add loca

sk shamimul islam 9 Sep 28, 2022
Location picker for Flutter.

Flutter Place Picker The missing location picker made in Flutter for Flutter. With dark theme and custom localization support. ⚠️ Please note: This li

Degreat 143 Dec 6, 2022
🌍 Map location picker component for flutter Based on google_maps_flutter

google_map_location_picker Location picker using the official google_maps_flutter. I made This plugin because google deprecated Place Picker. Using Pu

Ibrahim Eid 189 Dec 5, 2022
Flutter application to share location with a group. (under development)

Beacon About the Project This project is a flutter build native interface to ease the group travelling (or hiking). By using this, the group leader wo

CCExtractor Development 29 Nov 30, 2022
An Android App, which lets you work on Location Data, built with :heart: using Flutter

locatorz A Simple Flutter based Android Application to work with Location based Data ;) Documentation :: Work in Progress :) Screenshots :: Screen Rec

Anjan Roy 31 Aug 23, 2022