OLC codes represent a four-sided area with its sides aligned with the 
lat/long grid (on the lat/long values "Lo" and "Hi").

After decoding a plus code as you already did, you should then be able to 
mix the "Lo" and "Hi" values to get the following four coordinates:

   1. latitudeLo / longitudeLo
   2. latitudeHi / longitudeLo
   3. latitudeHi / longitudeHi
   4. latitudeLo / longitudeHi

I don't know enough about GeJSON to tell you whether this order of 
coordinates is correct - if not, try the opposite order.

For what it's worth, there seems to be some floating point precision error 
going on with your result set. 10-digit codes should always have their 
borders on lat/long values that are an integer multiple of 0.000125°

On Tuesday, August 11, 2020 at 11:36:33 AM UTC+2 christia...@gmail.com 
wrote:

> I have center point and two angles of the rectangle.
> I need the other two angles I think

-- 
Public site: http://www.openlocationcode.com/
Github project: https://github.com/google/open-location-code
Demo site: http://plus.codes/
--- 
You received this message because you are subscribed to the Google Groups "Plus 
Codes Community Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to open-location-code+unsubscr...@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/open-location-code/d3d6e3e4-59e1-43b7-8703-eb800eced044n%40googlegroups.com.

Reply via email to