locale - Getting local language code from lat lon cordinates -
locale - Getting local language code from lat lon cordinates -
i utilize current latlon centre of leaflet map observe local language can take wikipedia version query against. querying english language version limits results. illustration in tallin ...
english - 80 results - https://en.wikipedia.org/w/api.php?action=query&list=geosearch&gsradius=1000&gslimit=500&gscoord=59.436682840436205%7c24.747337102890015
estonian - 109 results - https://et.wikipedia.org/w/api.php?action=query&list=geosearch&gsradius=1000&gslimit=500&gscoord=59.436682840436205%7c24.747337102890015
also, place names returned in local language, thing me.
i appreciate there may ambiguity, , other times maybe i'll language there isn't wikipedia (list @ http://meta.wikimedia.org/wiki/list_of_wikipedias#all_wikipedias_ordered_by_number_of_articles), can code , default english language fallback.
by way of background:
i have prototype app @ http://postcodepast.com aims allow discovery of cultural heritage content local people search (their home town example). allows them confirm locations (i.e. geotag them), perchance improve accuracy, or reject when there false matches. crowdsourced info generated released open info (currently geojson feed).
the way local landmarks wikipedia , search these names across cultural heritage providers europeana, dpla , flickr commons. as utilize other sources of landmarks (e.g. list of geotagged ww1 battlefields) or other providers (with wider geographical coverage, or maybe specific content). idea.
locale leaflet wikipedia-api
Comments
Post a Comment