GithubHelp home page GithubHelp logo

Comments (12)

jancborchardt avatar jancborchardt commented on August 15, 2024

Yup, including a link to GPSlogger / OSMand as well. (and something for iOS)

from maps.

brantje avatar brantje commented on August 15, 2024

For iOS, i have no clue. Don't have an iphone, neither have friends.
So that needs to come from someone who has.

from maps.

dgeo avatar dgeo commented on August 15, 2024

What is the URL to use ?

from maps.

DJaeger avatar DJaeger commented on August 15, 2024

Have looked at the source code and it seems to be for OsmAnd:

http://YourAddressToOwnCloud/index.php/apps/maps/api/1.0/location/update?hash=YourDeviceHash&lat={0}&lon={1}&timestamp={2}&hdop={3}&altitude={4}&speed={5}

You have to change YourAddressToOwnCloud to somethink like example.com/owncloud
and YourDeviceHash to the Hash you generated from the gear-menu in the maps-app.

I will test it on the way to home.

from maps.

DJaeger avatar DJaeger commented on August 15, 2024

I have created an PR to fix an issue with Osmand: #40
With that it should work like expected and the above mentioned adress.

For GPSLogger you can use the following working address:
http://YourAddressToOwnCloud/index.php/apps/maps/api/1.0/location/update?hash=YourDeviceHash&lat=%LAT&lon=%LON&timestamp=%TIME&hdop=%ACC&altitude=%ALT&speed=%SPD

Also here:
You have to change YourAddressToOwnCloud to somethink like example.com/owncloud
and YourDeviceHash to the Hash you generated from the gear-menu in the maps-app.

from maps.

DJaeger avatar DJaeger commented on August 15, 2024

Just to know:
For GPSLogger to use with this feature you need the current version, that is not available in F-Droid.
It works with location services at hight and low accuracy and also in the background (only background service and app closed).

Osmand works also with the current version from F-Droid.
But it requires one of the folloing scenarios to work:

  • run in foreground (app open) with location services using WLAN, Cells and/or GPS
  • run in the background (only background service and app closed) but only if GPS is activated

from maps.

jas4711 avatar jas4711 commented on August 15, 2024

There is a new app called "Self-Hosted GPS Tracker" in F-Droid that appears to be able to do the right thing -- use this as the URL:

https://foo.example.org/owncloud/index.php/apps/maps/api/1.0/location/update?hash=YourDeviceHash

and it will append the lat=LAT&lon=LON string.

However the app will send start/stop pings to that URL which ends up in the database as NULL values for lat/long. Not ideal, but close.

from maps.

DJaeger avatar DJaeger commented on August 15, 2024

I have seen this app too and have the check, how to work with this, on my todo.
I also want to create some kind of documentation for location tracking.

from maps.

clinique avatar clinique commented on August 15, 2024

Is maps reputed to work with the current 8.2.1 ? I currently can not manage to define devices (they are created but table populated with null values) neither to successfully call /location/update URL.

from maps.

DJaeger avatar DJaeger commented on August 15, 2024

I have now looked into "Self-Hosted GPS Tracker".
It is not able to submit hdop, altitude and speed, so they would stay empty.
The timestamp is also only submitted with param "t".

@clinique:
I have not checked with 8.2.1 until now.
Which version of the maps app do you use?
Which app with which version do you use to submit the location?

from maps.

clinique avatar clinique commented on August 15, 2024

@DJaeger : I took the master version on GitHub. I'm using Owntracks along with a custom node-red to HTTP Get on maps api - but with no success. I tried directly the URL in a browser, this gives me an error stating "to many redirections". I also have errors in owncloud :

{"reqId":"RDN3OPgktV0DealUL5jl","remoteAddr":"81.61.137.133","app":"PHP","message":"Undefined index: ADR at /usr/share/owncloud/apps/maps/controller/pagecontroller.php#111","level":3,"time":"2015-12-14T08:25:34+00:00"}
{"reqId":"RDN3OPgktV0DealUL5jl","remoteAddr":"81.61.137.133","app":"PHP","message":"Attempt to assign property of non-object at /usr/share/owncloud/apps/maps/controller/pagecontroller.php#195","level":3,"time":"2015-12-14T08:25:34+00:00"}

from maps.

jancborchardt avatar jancborchardt commented on August 15, 2024

Setting to 0.2 for now. :) Anyone is welcome to work on this and improve the Maps app

from maps.

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.