Interface: LatLng

Methods

distance

distance(other) returns rules.Float

Calculate distance between two LatLng points in distance (meters).

Parameter

other

rules.LatLng

The other point.

Value must not be null.

Returns

non-null rules.Float distance in meters.

latitude

latitude() returns rules.Float

Get the latitude value in the range [-90.0, 90.0].

Returns

non-null rules.Float latitude.

longitude

longitude() returns rules.Float

Get the longitude value in the range [-180.0, 180.0].

Returns

non-null rules.Float longitude.

ML Kit for Firebase provided ready-to-use ML solutions for app developers. New apps should use the standalone ML Kit library for on-device ML and Firebase ML for cloud-based ML.

Updated Feb 21, 2025

Firebase gives you the tools and infrastructure you need to build better mobile and web apps, improve app quality, and grow your business.

Updated Dec 3, 2019

Firebase gives you the tools and infrastructure you need to build better mobile and web apps, improve app quality, and grow your business.

Updated Mar 4, 2020