Search packages, repositories and app categories

Package detailsv2.0.7

latlng

GeoJSON, Geodesy and Geographical calculations for Dart. Provides LatLong and Mercator projection (EPSG4326).

AndroidiOSWebmacOSWindowsLinux
30-day downloads
12.1K
Likes
38
Pub points
160

Install package

flutter pub add latlng

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

The latlng package provides essential geospatial utilities for Dart, supporting GeoJSON, geodesy, and geographical calculations. It includes the LatLong class for handling latitude and longitude coordinates and implements Mercator projection (EPSG:4326). Designed for cross-platform applications, it enables accurate location-based operations across Android, iOS, Web, macOS, Windows, and Linux. Ideal for developers building mapping features or working with geographic data in Flutter apps.

Use cases

  • Geographic coordinate manipulation
  • Map projections and conversions
  • GeoJSON parsing and handling
  • Location-based app features
  • Distance and bearing calculations
  • Cross-platform geospatial logic

Key features

  • Supports EPSG:4326 (Mercator) projection
  • Includes LatLong class for coordinate handling
  • Provides geodesic calculations
  • Compatible with GeoJSON standards
  • Cross-platform support
  • Lightweight and easy to integrate

Suitable for

  • Flutter developers working with maps
  • Apps requiring precise geographic computations
  • Projects involving spatial data processing
  • Developers using GeoJSON formats
  • Cross-platform geolocation applications

Considerations

  • Limited to basic geospatial operations
  • No built-in map rendering
  • Requires manual handling of complex projections
  • Not intended for high-performance GIS workflows
  • Depends on external libraries for advanced geospatial analysis

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

pub package

Geodesy and Geographical calculations for Dart. Provides LatLong and Mercator projection (EPSG4326).

Getting Started

In your pubspec.yaml file add:

dependencies:
  latlng: any

Then, in your code import:

import 'package:latlng/latlng.dart';

Features

  • Julian date and time.
  • ECI and ECF Calculations.
  • Look Angle Calculation.
  • Ground Track.
  • WGS84 and WGS72.
  • Projection to Tile Index.

Categories

Source repository

Projects using this package