[Photon] Multiple BBOX Parameters to deal with countries across date line (-180/180 lon)

Tim-Hinnerk Heuer th.heuer+photon at gmail.com
Wed Apr 15 03:52:28 UTC 2020


Hi There,

Let me introduce: I am Tim, a German living in New Zealand since 2001. I've
been working at Manaaki Whenua Landcare Research, New Zealand since 2010,
specialising on Web GIS software development since.

I would be happy and capable to implement this feature as I know Java and
the middle wares well.

Before I submit an issue on GitHub, I would like to discuss this with you.

We are working on a web portal for the Pacific.

We decided to use Photon and OSM data for our spatial search capability.
However, we found a problem with Fiji, which has both longitudes greater
than 160 and smaller than -170. OpenLayers does not support this properly
and cannot handle extents like this, so we had to hack it and accept
longitudes >180 degrees for the map to work properly. That is a separate
issue but related.

So, I hacked it by submitting 2 queries to Photon:
One from 170 to 180 and then next from -180 to -170 (ish) and then merge
the results in the client.

Obviously this is not ideal and might mess up the ranking in some way,
especially when there are less than n results in one response.

So, I propose to add support for multiple bbox parameters. I couldn't seem
to find this working already

Does that make sense or am I missing something?

Kind regards,
Tim-Hinnerk Heuer

Twitter: @geekdenz
Blog: http://www.thheuer.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/photon/attachments/20200415/cc1be987/attachment.htm>


More information about the Photon mailing list