Replies: 6 comments
-
Nothing has been changed in the related source code for a while. Since the data comes directly from OpenStreetMap, it is likely that the inconsistency can be found there. Do you have an example address that you can share? The |
Beta Was this translation helpful? Give feedback.
-
Looks like OSM might have changed how they returned the country name? This is the {
"lat": "38.6964876",
"lon": "-119.5485215",
"name": "Tesla Supercharger",
"type": "charging_station",
"osm_id": 6641867798,
"address": {
"road": "US 395",
"state": "Nevada",
"county": "Douglas County",
"amenity": "Tesla Supercharger",
"country": "United States",
"country_code": "us"
},
"licence": "Data \u00a9 OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright",
"category": "amenity",
"osm_type": "node",
"place_id": 71835249,
"extratags": {
"capacity": "6",
"operator": "Tesla Motors",
"brand:wikidata": "Q17089620",
"brand:wikipedia": "en:Tesla Supercharger"
},
"importance": 0,
"place_rank": 30,
"addresstype": "amenity",
"boundingbox": [
"38.6964376",
"38.6965376",
"-119.5485715",
"-119.5484715"
],
"namedetails": {
"name": "Tesla Supercharger",
"brand": "Tesla Supercharger",
"name:en": "Tesla Supercharger"
},
"display_name": "Tesla Supercharger, US 395, Douglas County, Nevada, United States"
}
This is the {
"lat": "37.76871065",
"lon": "-122.39221925169028",
"name": "UCSF Mission Bay",
"type": "university",
"osm_id": 224832527,
"address": {
"city": "San Francisco",
"road": "Southern Embarcadero Freeway",
"state": "California",
"county": "San Francisco",
"country": "United States of America",
"postcode": "94158",
"university": "UCSF Mission Bay",
"country_code": "us",
"neighbourhood": "Mission Bay"
},
"licence": "Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright",
"category": "amenity",
"osm_type": "way",
"place_id": 141012132,
"extratags": {
"website": "https://www.ucsf.edu/",
"internet_access": "wlan"
},
"importance": 0,
"place_rank": 30,
"addresstype": "amenity",
"boundingbox": [
"37.7668468",
"37.7706091",
"-122.3956558",
"-122.3893037"
],
"namedetails": {
"name": "UCSF Mission Bay",
"name:en": "UCSF Mission Bay",
"alt_name": "University of California, San Francisco - Mission Bay campus"
},
"display_name": "UCSF Mission Bay, Southern Embarcadero Freeway, Mission Bay, San Francisco, California, 94158, United States of America"
} |
Beta Was this translation helpful? Give feedback.
-
Yeah, this looks like inconsistent OSM data. We could of course maintain a list of aliases in TeslaMate, but it would be much cleaner to fix the error directly in OSM. |
Beta Was this translation helpful? Give feedback.
-
I realize this topic is 3 years old now. How would one go about correcting the data? I am still seeing inconsistencies with some drives showing United States and others showing United States of America. I even have multiple drives on the same day showing both. Is there a way I could mass update the data? Or a way to define an alias saying that United States of America is actually just United States. Not a SQL guy so I'm not sure where to start with either. |
Beta Was this translation helpful? Give feedback.
-
Well, you can change it in the database for the past. First backup your database, see https://docs.teslamate.org/docs/maintenance/backup_restore/ Then run this psql in the database container: And you're done. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
More of a minor thing, but thought I’d report it just in case. It looks like maybe in the last month or three I’ve started seeing all my Location data attached to the country “United States”. Previously, it was attached to the country “United States of America”. This leads to the number of countries I’ve visited as 2 (instead of the proper 1).
Again, not a dealbreaker, and I might just update all the previous ones from the database, but wanted to point it out in case this was an unintended change/data source change and it might revert back at some point, etc.
Cheers, happy new year!
Beta Was this translation helpful? Give feedback.
All reactions