1.0.8 • Published 11 months ago

free-gps-location v1.0.8

Weekly downloads
-
License
ODbL-1.0
Repository
github
Last release
11 months 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

11 months ago

1.0.6

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

12 months ago