Skip to main content

apiverve_coordinatesaresea 1.2.3 copy "apiverve_coordinatesaresea: ^1.2.3" to clipboard
apiverve_coordinatesaresea: ^1.2.3 copied to clipboard

Coordinates Are Sea checks whether a given latitude and longitude pair sits in the ocean or on land. Pass geographic coordinates to receive a boolean confirming if the location is in the sea.

Coordinates Are Sea API - Dart/Flutter Client #

Coordinates Are Sea checks whether a given latitude and longitude pair sits in the ocean or on land. Pass geographic coordinates to receive a boolean confirming if the location is in the sea.

pub package License: MIT

This is the Dart/Flutter client for the Coordinates Are Sea API.

Installation #

Add this to your pubspec.yaml:

dependencies:
  apiverve_coordinatesaresea: ^1.2.3

Then run:

dart pub get
# or for Flutter
flutter pub get

Usage #

import 'package:apiverve_coordinatesaresea/apiverve_coordinatesaresea.dart';

void main() async {
  final client = CoordinatesareseaClient('YOUR_API_KEY');

  try {
    final response = await client.execute({
      'lat': 37.7749,
      'lon': -122.4194
    });

    print('Status: ${response.status}');
    print('Data: ${response.data}');
  } catch (e) {
    print('Error: $e');
  }
}

Response #

{
  "status": "ok",
  "error": null,
  "data": {
    "latitude": 37.7749,
    "longitude": -122.4194,
    "isSea": false
  }
}

API Reference #

Authentication #

All requests require an API key. Get yours at apiverve.com.

License #

MIT License - see LICENSE for details.


Built with Dart for APIVerve

0
likes
130
points
136
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Coordinates Are Sea checks whether a given latitude and longitude pair sits in the ocean or on land. Pass geographic coordinates to receive a boolean confirming if the location is in the sea.

Homepage
Repository (GitHub)
View/report issues
Contributing

License

MIT (license)

Dependencies

http, http_parser

More

Packages that depend on apiverve_coordinatesaresea