1.0.8 • Published 3 years ago

free-gps-location v1.0.8

Weekly downloads
-
License
ODbL-1.0
Repository
github
Last release
3 years ago

Open-Source-Reverse-Geocoding

import getCurrentLocation from 'free-gps-location';

getCurrentLocation().then((loc)=>{
/*
code here ...
const locationId=loc.placeId;
const latitude=loc.latitude;
const longitude=loc.longitude;
const city=loc.city;
const state=loc.state;
const country=loc.country;
const countryCode=loc.countryCode;
*/
})

OR

import getCurrentLocation from 'free-gps-location';
const getLocation=async ()=>{
const loc=await getCurrentLocation();
const locationId=loc.placeId;
const latitude=loc.latitude;
const longitude=loc.longitude;
const city=loc.city;
const state=loc.state;
const country=loc.country;
const countryCode=loc.countryCode;
}
1.0.8

3 years ago

1.0.6

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago