How to implement = I'm a confused newbie.

165 views
Skip to first unread message

Hugh Evans

unread,
Nov 27, 2018, 9:13:28 PM11/27/18
to Plus Codes Community Forum
I need to geolocate numerous soccer, baseball and other playing fields in a large park. The Park has a single street address. I have a web. ap database of the various playing fields with descriptions. (Angular 7, Firestore). How best to  get a Plus Code for each field? Does a user walk to the center spot of the field with the web ap and click a button on the ap and geolocate direct to Plus code - or pull a coordiante and convert to Plus Codes... or why not just use a coordinate??? Do you loose accuracy converting a coordinate to a Plus Code?

Sorry, right now I know enough to be dangerous... but I sure would like to get my developer to integrate this... if I knew how to spec. it.

Any advise, thoughts and insigts will be appreciated.

Thanks

Zongwei Li

unread,
Nov 28, 2018, 1:12:22 AM11/28/18
to Plus Codes Community Forum
Hey Hugh,

Let me see if I understand correctly. You have a web app that has the locations of different playing fields in parks and want to know how to use plus codes to give the fields "addresses". Is that accurate?

Getting a plus code for a field
I'm assuming that you have the latitude and longitude (aka your coordinates) for each playing field in your database. If you do, you can simply pull in the Javascript library (or whatever language you're using). The library will perform the conversion from a latitude/longitude to a plus code for you. 

How to convert user's location to plus code
Typically, when you programmatically get the user's location from a web or mobile app, it comes back as a latitude/longitude. You can convert this to a plus code using the library.

Plus code precision
Plus codes can have a varying number of digits. The more digits it has, the more precise it is. A 10-digit plus code represents roughly a 13 x 13m square, which should be good enough for your use case. If you need to be more precise, you can use an 11-digit plus code to represent a ~2m x 3m rectangle.

Let me know if you have any other questions!

Rasťo Šrámek

unread,
Nov 28, 2018, 5:50:42 AM11/28/18
to Zongwei Li, Plus Codes Community Forum
I'd also point out that if the number of fields you want to get is small, it might be very easy to just open maps.google.com, go to the field, change to satellite view, right click on the center or wherever, select "what is here" and then click on the lat/long in the little panel that appears on the bottom. Then you get a plus code in the left panel:




--
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+unsub...@googlegroups.com.
To post to this group, send email to open-location-code@googlegroups.com.
Visit this group at https://groups.google.com/group/open-location-code.
To view this discussion on the web, visit https://groups.google.com/d/msgid/open-location-code/f5a12861-e940-46de-b1ab-d8cc2fe81894%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Zongwei Li

unread,
Nov 28, 2018, 12:36:48 PM11/28/18
to pa...@snapitup.tech, open-loca...@googlegroups.com
Hey Patsy,

The libraries are all open-source and free, forever. For Wix, the map should have the same functionality that Rasto described - you can click on an area to quickly see the plus code.

If you want to have the plus codes displayed in a box like they are here, you'll need to code that up yourself.

On Tue, Nov 27, 2018 at 10:53 PM Patsy Clark <pa...@snapitup.tech> wrote:
Does this cost per click to use on a website? 

Open Location Code JavaScript API


I do not know how to build a Google Map without using Wix.  How do I find out how to create a map with many google plus codes in a small area?  Each is the size of a one car garage. 

Thank you Zongwei

★  Google Local Partner  🌎Google Trusted Photographer  📍 Google Map Master

Patsy Clark
Real Estate Broker and Google Local Partner
703-963-8515
Snap It Up Location Data Management
7120 Poole Road  Raleigh NC   27610
www.SnapItUp.Tech
Snap Realty is Licensed, Bonded and Insured in NC





--
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-c...@googlegroups.com.
To post to this group, send email to open-loca...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages