-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reverse geocoding and minor fixes #48
base: master
Are you sure you want to change the base?
Conversation
edewaele
commented
Jul 6, 2015
- POIs are missing address information #31 when the POI lacks address information, a request is sent to Nominatim for retrieving the address
- Popup title must be the same as POI label #47 the popup title is the same as the POI label
- "Locate" was not translated in the address search box
For the sake of consistency, when no name is provided, the popup title may be taken from "ref" or "operator" as in getName()
For the sake of consistency, when no name is provided, the popup tooltip may be taken from "ref" or "operator" as in getName()
Changed Nomimatim widget so that that it uses the translated string
When a POI does not have street name and house number, the address is obtained from Nominatim
Many website keys are not preceded with the protocol identifier, which must me added in the href
This fixes the last untranslated string in issue dotevo#8
Hey, anyone there ? |
header('Content-Type: application/json'); | ||
$_GET["format"] = "json"; | ||
echo file_get_contents('http://nominatim.openstreetmap.org/reverse?'.http_build_query($_GET)); | ||
?> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?>
is not needed
I will push it to test directory today. |
Why you do not use ajax? Like here https://github.com/dotevo/osm24/blob/master/js/main.js#L288 |
@dotevo good point, I also see no reason for using a proxy (I think this is what you mean?) |
Exactly, I think that can be used but only for Google bot. |
Even though Webkit authorises such requests, Firefox would not allow a direct ajax request, arguing that this is against "Same-origin" policy. https://github.com/dotevo/osm24/blob/master/js/main.js#L288 does not work with Firefox either. |