Giter Site home page Giter Site logo

esri / html5-geolocation-tool-js Goto Github PK

View Code? Open in Web Editor NEW
94.0 21.0 50.0 964 KB

Mobile ArcGIS API for JavaScript samples for testing various geolocation configurations.

JavaScript 15.50% HTML 84.50%
web-development javascript geoclocation arcgis-api

html5-geolocation-tool-js's Introduction

html5-geolocation-tool-js

Includes two apps for testing browser-based geolocation on different devices. It lets you track your location as well as play with the different Geolocation API properties. This can be used on a desktop browser, mobile browser or within a PhoneGap project.

index.html - let's you experiment with all the different settings as well as accumulating track points.

field-location-template.html - is an experimental mobile app that demonstrates one approach to helping field workers determine the best single location. The app uses visual clues, averaging and center point averaging. It's built using bootstrap.

Geolocation Tool

Main View:

App

Settings View:

App

Settings View (cont'd):

App

Field Location Template

Main View:

App

View 2:

App

View 3:

App

Features for Geolocation Tool

  • Displays location on map.
  • Displays HTML5 geolocation properties (e.g. lat/lon, timestamp, etc)
  • Let's you configure and try out different scenarios by changing the geolocation properties.
  • Modify geolocation properties via the Settings menu.

Features for Field Location Template

  • Displays geolocation accuracy circle
  • Shows size of post-processing buffer
  • Gives visual cues as whether current location is good (green), so-so (yellow), or bad (red).
  • Shows averaged center location and its associated lat/lon
  • Shows accumulated points
  • Adjustable number of locations to post-process

Requirements

  • Internet browser: desktop, laptop, phone or tablet
  • Mapping Library ArcGIS API for JavaScript
  • Internet connection by ethernet, cellular network and/or Wifi
  • Experience with HTML/JavaScript.

Licensing

Copyright 2018 Esri

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

A copy of the license is available in the repository's license.txt file.

html5-geolocation-tool-js's People

Contributors

andygup avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

html5-geolocation-tool-js's Issues

Update code

Update to latest JS API and implement jQueryHelper library.

Geolocation not working over HTTP

The latest versions of Chrome and Safari 10, including Safari on iOS 10, will block geolocation unless the web application is served over HTTPS. Also note, all your content will have to be served via HTTPS, you won't be able to mix HTTPS with non-HTTPS.

Reference: geonet.esri.com

Any methods to detect geolocation spoofing?

I have been searching online for established methods for checking for geolocation spoofing but could not find any detailed explanation of the techniques. One comment on StackOverflow suggested to detect extreme speed or distance changes but Isn't that also spoofable and how to account for the case when user spoofs directly to the location and then turns on the app.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.