You need some sort of way to convert Ahmedabad, Gujarat, India into a
lat/long, and then you can call one of the OLC libraries to recover the
full code from short code + lat/long. The lat/long doesn't need to be
precise, it can be off to up to half a degree of latitude and longitude, so
any point in Ahmedabad will do.

Or, depending on the setting you could do things like call the android
geocoder for instance if this is happening on a phone.

On Thu, Jun 20, 2024 at 9:06 AM 'Om Patel' via Plus Codes Community Forum <
open-location-code@googlegroups.com> wrote:

> I have to get the local plus codes from Global plus codes. My Team has
> made a Flask-API to convert global plus codes to coordinates(latitude,
> longitude). But as most users would use local plus code, I have to find the
> solution.
>
> for eg: user input = "2H8G+H6 Ahmedabad, Gujarat, India"
> should be identified or processed as "7JMJ2H8G+H6".
>
> --
> 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/a52da832-a734-4247-b46b-bf0e248b2c67n%40googlegroups.com
> <https://groups.google.com/d/msgid/open-location-code/a52da832-a734-4247-b46b-bf0e248b2c67n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CALCXoY3%2Bb97tt7w_Lxf218j-uGVjVax-Cg6wptF1%2B6Kv%2BkT%2BrQ%40mail.gmail.com.
  • [open-location-code] Loca... 'Om Patel' via Plus Codes Community Forum
    • Re: [open-location-c... 'Rasťo Šrámek' via Plus Codes Community Forum

Reply via email to