All Projects → tkh44 → React Geolocation

tkh44 / React Geolocation

Licence: mit
🌎🛰 Declarative geolocation for React

Programming Languages

javascript
184084 projects - #8 most used programming language
declarative
70 projects

Projects that are alternatives of or similar to React Geolocation

Track Ip
Advanced Ip Tracker Tool
Stars: ✭ 150 (-36.97%)
Mutual labels:  geolocation
React Geolocated
React Higher-Order Component for using Geolocation API
Stars: ✭ 185 (-22.27%)
Mutual labels:  geolocation
Cartodb
Location Intelligence & Data Visualization tool
Stars: ✭ 2,537 (+965.97%)
Mutual labels:  geolocation
Uber React
Uber-like project in React Native
Stars: ✭ 151 (-36.55%)
Mutual labels:  geolocation
Shiny geoip
IP to location API service
Stars: ✭ 172 (-27.73%)
Mutual labels:  geolocation
Weather
Taiwan's Weather Maps! 想查詢每個地方的天氣嗎!?藉由 Google Maps API 的地圖服務,以及中央氣象局網站的天氣預報,讓你快速輕鬆的查詢台灣 368 個鄉鎮的天氣概況!
Stars: ✭ 206 (-13.45%)
Mutual labels:  geolocation
Ip2location Go
Use IP2Location geolocation database to lookup the geolocation information with IP2Location Go Package. It can be used to determine country, region, city, coordinates, zip code, time zone, ISP, domain name, connection type, area code, weather, MCC, MNC, mobile brand name, elevation and usage type that any IP address or hostname originates from.
Stars: ✭ 142 (-40.34%)
Mutual labels:  geolocation
Mercury
Mercury is a hacking tool used to collect information and use the information to further hurt the target
Stars: ✭ 236 (-0.84%)
Mutual labels:  geolocation
React Native Android Location Services Dialog Box
React Native Android Location Services Dialog Box
Stars: ✭ 175 (-26.47%)
Mutual labels:  geolocation
Iploc
Fastest IP To Country Library
Stars: ✭ 224 (-5.88%)
Mutual labels:  geolocation
Geodb
A Persistent Geospatial Database with Geofencing & Google Maps Support
Stars: ✭ 155 (-34.87%)
Mutual labels:  geolocation
Aphotomanager
Manage local photos on Android: gallery, geotag with photomap, privacy, tags, find, sort, view, copy, send, ... .
Stars: ✭ 164 (-31.09%)
Mutual labels:  geolocation
Ios
OwnTracks' iPhone App
Stars: ✭ 222 (-6.72%)
Mutual labels:  geolocation
Ffwdme.js
[DEPRECATED!] 🛑 A JavaScript toolkit that aims to bring interactive GPS driving directions to the mobile browser
Stars: ✭ 150 (-36.97%)
Mutual labels:  geolocation
Use Position
🌍 React hook usePosition() for fetching and following a browser geolocation
Stars: ✭ 230 (-3.36%)
Mutual labels:  geolocation
Geo Three
Tile based geographic world map visualization library for threejs
Stars: ✭ 146 (-38.66%)
Mutual labels:  geolocation
Geolocation
Flutter geolocation plugin for Android and iOS.
Stars: ✭ 205 (-13.87%)
Mutual labels:  geolocation
Clavin
CLAVIN (Cartographic Location And Vicinity INdexer) is an open source software package for document geoparsing and georesolution that employs context-based geographic entity resolution.
Stars: ✭ 237 (-0.42%)
Mutual labels:  geolocation
Proximityhash
Geohashes in proximity
Stars: ✭ 231 (-2.94%)
Mutual labels:  geolocation
Skylift
Wi-Fi Geolocation Spoofing with the ESP8266
Stars: ✭ 223 (-6.3%)
Mutual labels:  geolocation

react-geolocation

🌎🛰 Declarative geolocation in React

npm version Build Status codecov

Install

npm install -S react-geolocation

Basic Usage

<Geolocation
  render={({
    fetchingPosition,
    position: { coords: { latitude, longitude } = {} } = {},
    error,
    getCurrentPosition
  }) =>
    <div>
      <button onClick={getCurrentPosition}>Get Position</button>
      {error &&
        <div>
          {error.message}
        </div>}
      <pre>
        latitude: {latitude}
        longitude: {longitude}
      </pre>
    </div>}
/>

Props

enableHighAccuracy boolean

timeout number

maximumAge number

render function

render is a function that receives an object as its only argument.

The object contains the following keys:

  • fetchingPosition: bool
  • position: object
  • error: object
  • getCurrentPosition: function

lazy boolean

If true then the component will not perform the fetch on mount. You must use the getCurrentPosition named argument in order to initiate the request.

<Geolocation 
  lazy 
  render={({getCurrentPosition, fetchingPosition}) => (
    <div>
      <button onClick={getCurrentPosition}>Get Current Position</button>
      <div>Fetching Position: {fetchingPosition}</div>
    </div>
  )}
/> 
// renders "Fetching Position: false" until the button is clicked

onSuccess function

callback called on success. Its only argument is position

onError function

callback called on error. Its only argument is error

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].