PTV xServer : Custom Reverse Goecoding & Custom Layer Map

DeZ8 years ago

Hello,

I have PTV xServer in my datacenter and i want to implement it to traccar to make Reverse Goecoding & Layer Map

Reverse Geocoding : http://xserver.ptvgroup.com/en-uk/products/ptv-xserver/ptv-xlocate/

How it's working ?
How can i write my own server page ?
PTV work with SAOP and REST, but i can write php server also.

Layer Map : http://xserver.ptvgroup.com/en-uk/products/ptv-xserver/ptv-xmap/

How it's working ?
The URL set in custom layer field it's just to set the position of device ? what is z ? altitude ?

Thanks

Anton Tananaev8 years ago
  1. For reverse geocoding you would need to implement support for it in Traccar, unless you can use some existing format (e.g. Nominatim or Google).

  2. Map layer is basically a tile server. Z is zoom. More information about URL here:

https://openlayers.org/en/latest/apidoc/ol.source.XYZ.html

DeZ8 years ago
  1. So i just need to copy the API of http://locationiq.org/#docs ?
    Can you tell me which parameter are used by traccar to send the request to locationiq ?
    And which value are used in response ?

  2. I don't know the tile concept, i try to learn how it work

Thanks

Anton Tananaev8 years ago
  1. Yes. For parameters check NominatimGeocoder class.
DeZ8 years ago

Ok i found it on github and i understand how it's work

i try to write my own server page

Thanks