Skip to content
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

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

edewaele
Copy link
Contributor

@edewaele edewaele commented Jul 6, 2015

edewaele added 7 commits June 25, 2015 21:47
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
@edewaele
Copy link
Contributor Author

Hey, anyone there ?

header('Content-Type: application/json');
$_GET["format"] = "json";
echo file_get_contents('http://nominatim.openstreetmap.org/reverse?'.http_build_query($_GET));
?>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?> is not needed

@dotevo
Copy link
Owner

dotevo commented Jul 21, 2015

I will push it to test directory today.

@dotevo
Copy link
Owner

dotevo commented Jul 24, 2015

Why you do not use ajax? Like here https://github.com/dotevo/osm24/blob/master/js/main.js#L288

@nicolashohm
Copy link
Contributor

@dotevo good point, I also see no reason for using a proxy (I think this is what you mean?)

@dotevo
Copy link
Owner

dotevo commented Jul 24, 2015

Exactly, I think that can be used but only for Google bot.

@edewaele
Copy link
Contributor Author

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.

edewaele added 2 commits July 30, 2015 16:00
Added amenity=post_office (fixes issue dotevo#37)

Added amenity=post_office (fixes issue dotevo#37)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants