Giter Club home page Giter Club logo

Comments (4)

huningxin avatar huningxin commented on June 12, 2024

I investigated the geolocation API (http://dev.w3.org/geo/api/spec-source.html ) support in Content/Blink which Cameo depends on.

Background

Basically geolocation (position) data is provided by GPS sensor or location web service (client provides the WIFI, Cell or IP, server returns position).
In practice, GPS sensor is used for high accuracy, and the location web service is used for devices without GPS (such as desktop), for in-door usage or even for power saving.

As diagram [1] shows, Content/Blink uses different location providers (backends) on different platforms.
There are three types of providers implemented in Content/Blink: 1) GPS sensor based; 2) web service based,; 3) Platform/OS API based (the platform/OS API itself depends on web service or GPS sensor).

Summary

Cameo CAN reuse GPS sensor based provider for general Linux distribution and Windows 7.
Cameo CANNOT use location web service based provider unless purchasing the API key from Google.
Cameo CAN reuse the platform/OS location API based provider for Android and Windows 8. But the position data availability depends on underlying platform/OS.
Cameo NEEDS to implement platform/OS location API based provider for Tizen.

Details

[1] Content geolocation components diagram
geolocation

from crosswalk.

huningxin avatar huningxin commented on June 12, 2024

API spec: http://dev.w3.org/geo/api/spec-source.html

from crosswalk.

huningxin avatar huningxin commented on June 12, 2024

According to current implementation, validation points are:

  1. On Linux with GPS sensor, navigator.geolocation.getCurrentPosition should invoke successCallback with meaningful Position value. (when sensor is working, for example out-door)
  2. On Linux without GPS sensor, navigator.geolocation.getCurrentPosition should invoke errorCallback with POSITION_UNAVAILABLE error.
  3. On Windows 7 with GPS sensor, navigator.geolocation.getCurrentPosition should invoke successCallback with meaningful Position value. (when sensor is working, for example out-door)
  4. On Windows 7 without GPS sensor, navigator.geolocation.getCurrentPosition should invoke errorCallback with POSITION_UNAVAILABLE error.
  5. On Windows 8, navigator.geolocation.getCurrentPosition should invoke successCallback with meaningful Position value.

from crosswalk.

jiangwenhao avatar jiangwenhao commented on June 12, 2024

This feature has been migrated to JIRA, please track it in https://crosswalk-project.org/jira/browse/XWALK-221. Thanks

from crosswalk.

Related Issues (20)

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.