The Teslamate container requested different GPS coordinates, but the address table only has one address record. Is my self-built geocoder service missing some parameters? #5633
|
Hi there, I’ve noticed an issue with the address table in the database. There’s only one address record, and all trip and charging records point to this single record for both the start location name and the end address name. The addresses are obtained through my self geocoder service. Here’s how the request from my service looks: {
“place_id”: “0”,
“licence”: “Data © Amap”,
“osm_type”: “node”,
“osm_id”: “0”,
“lat”: “xxxx”,
“lon”: “xxxx”,
“display_name”: “xxxx”,
“address”: {
“country”: “xxxx”,
“state”: “xxxx”,
“city”: “xxxx”,
“county”: “xxxx”,
“town”: “xxxx”,
“country_code”: “cn”,
“road”: “xxxx”,
“house_number”: “xxxx”
},
“boundingbox”: [
“xxxx”,
“xxxx”,
“xxxx”,
“xxxx”
],
“class”: “place”,
“type”: “house”,
“importance”: 0.0,
“extratags”: {
“amap_category”: “xxxxx”
}
}
I’ve also noticed that Teslamate requests different GPS coordinates for each request, and each request returns a 200 status code. When I queried the address table, I found that I’m also curious about the extra functionality that Thanks for your help! Is my response missing any other fields that Teslamate requires? Or are there fields returned in an unusual position, such as the POI? [Logs]
My self-built service returns a different address each time.
[Reason for Using Self-built Geocoding Service] Mainland China has limited access to Nominatim, and using a VPN can be inconvenient. |
Replies: 2 comments 3 replies
|
Please only use english language. |
|
With Firefox Translate, I think he wants to use teslamate with his own geocoder. Bit unclear if he is saying it is not working, and he wants help, or he wants help to ensure what he as done is correct. Regardless, our geocoder is in lib/teslamate/locations/geocoder.ex - that is where the fields we use from the geocoder response are documented. |
Thanks for posting in english.
I read your post as TeslaMate does behave normal, your self geocoder service does not.
so you can either use
NOMINATIM_PROXY(see https://docs.teslamate.org/docs/configuration/environment_variables) or fix your own service, nothing to do with TeslaMate.