OpenStreetMaps issues
-
Hi,
I’m seeing a very strange issue with OpenStreetMaps new Place. In new places, when selecting Set Address on the MAP, the CITY changes to something else outside the city.
I have checked manually at OpenStreetMaps and it is working well, the lat and lon are OK.
I have made a video to show you.
https://drive.google.com/file/d/16lZSinqKEFs_li7vtQs6LDcydZfJU-5D/view?usp=sharing
I can’t figure this out and it is confusing. Any ideas?
Thanks
-
Forgot to mention that many times we get
Please choose any address of the (CITYNAME) city only.
And that is NOT possible since it is IN the city. Something is wrong…
Hello!
Very sorry for the trouble. OSM has made some changes on their side and we have responded as quickly as possible.
We are going to release an update for the core GeoDiectory plugin today which includes some fixes related to recent OpenStreetMap address request url changes.
Once the update is available, please install it and try it out. We see that it resolves the issue on our side. However, if it doesn’t fixes the issue for you then please open ticket at https://wpgeodirectory.com/support/ .
Thank you, i will wait, no problem.
And i will update here is the issue is resolved.
@alexrollin I hope you do not mean this only
https://github.com/AyeCode/geodirectory/pull/2408/commits/560ff63ea0187b8f1f3def779e90b9e7590440b1
since i have allready a applied that.
This is NOT resolved with the update. Apparently my video wasn’t enough to show the issue.
I tested Openstreetmaps with some other plugin and the very same place (and all locations) work as expected. So this is NOT an issue of Openstreetmaps api but something in Geodirectory.
And please do NOT mark issues as resolved.
Always shows wrong CITY outside the default city and i can’t save or continue.
https://drive.google.com/file/d/16mu5KO77gqVUIE9gxOsaof98p3kzG-cN/view?usp=sharing
While Openstreetmaps shows correctly everything:
This is coming from the location API https://nominatim.openstreetmap.org/reverse?format=json&addressdetails=1&limit=1&accept-language=en&lat=45.440712114883205&lon=12.326745986938477
I guess you want it to say Venice? Is this the only area you are seeing an issue?
Thanks,
Stiofan
But OpenStreetMaps says:
Pedestrian Way Calle del Tentor, Santa Croce, Venezia-Murano-Burano, Mestre, Venice, Venezia, Veneto, 30135, Italy
It shows 30135 and the API says 30170? Seems kind of strange. Everything seems to return 30170 and i guess is Mestre (it is) …
I only use Venice, i have no idea for other cities.
Hi Dimal, I don’t know if you are from Italy (I am), but the address format you are using is completely wrong. Venice, Murano, Burano and Mestre, while all belong to the Province of Venezia, are completely different locations. Venice, Murano, Burano are different islands and Mestre is part of the main land. To make an example, that is like writing a Manhattan address as: 100 5th avenue, New York, Manhattan, Bronx, Brooklyn, Staten Island. It is super confusing and doesn’t make sense at all. Possibly that is making the OSM API go wrong. Have you tried dragging the marker into the correct place and see what the API returns? Alternatively, try adding the address excluding Murano, Burano and Mestre and only use Venice. Remember that the API and the front website of both Google Maps and OSM may behave slightly differently.
Let me know if that helps.
Try to write
Calle del Tentor (street)
Santa Croce (neighborhood)
Venezia (city)
30135 (zip code)
Veneto (region)
Italy (country)
Mestre Burano and Murano shouldn’t be included in that address.
let me know if that works
I will,
still the “Venice, Murano, Burano and Mestre” are not from me, but from automated after saving. Not mine. I only add the address of the road and the district.
City and Area (Venice and Veneto) are not options since they are default.
Tried it, it doesn’t work. No matter what i try, i get this:
https://drive.google.com/file/d/171DwMq6EPMCcrEQJkTGkV1SMlSi3AYLV/view?usp=sharing
Anyways, i guess OpenStreetMaps for some reason it doesn’t work right so i’m left in the cold.
Also why don’t you try it yourself and see if it works or not?
I was on phone and couldn’t test, the problem is definitely in the OSM API, what it returns makes little to no sense.
,”suburb”:”Venezia-Murano-Burano”,”city”:”Mestre”,”county”:”Venezia”,”ISO3166-2-lvl6″:”IT-VE”,”state”:”Veneto”,”ISO3166-2-lvl4″:”IT-34″,”postcode”:”30135″,”country”:”Italy”
Venezia-Murano-Burano are not Suburbs of Mestre. Rather Burano, Murano, and Mestre are suburbs of Venezia (Venice).There are no counties in Italy, rather there are provinces and indeed Venezia is a Province as well.
There are no States in Italy, rather there are Regions and Veneto is the correct region.Google Maps instead gets it all correct, which is not surprising.
Why not using Google Maps?
Also in my console i see this:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://nominatim.openstreetmap.org/search?format=json&addressdetails=1&limit=1&accept-language=en&q=Accademia%20Gallery%2C%20Campo%20della%20Carit%C3%A0%2C%20Dorsoduro&countrycodes=it. (Reason: CORS request did not succeed). Status code: (null).
The topic ‘OpenStreetMaps issues’ is closed to new replies.