Geocode externally #1579
Replies: 6 comments 1 reply
-
I've circumvented this by putting
|
Beta Was this translation helpful? Give feedback.
-
Yes, that's a valid workaround. Something simpler should also work. For example, |
Beta Was this translation helpful? Give feedback.
-
Hi @alexreisner , at the risk of annoying you further(completely unintentional) but just for some help, and I don't want to bloat issues/ discussions with more of my questions, is there a way I can save the geoapify api response so I can query it in the database and use an api call as a fallback? |
Beta Was this translation helpful? Give feedback.
-
Not annoying at all, this is an interesting use case. But I don't quite understand what you're trying to achieve. You're using two APIs, Getaddress.io (not supported by Geocoder) and Geoapify (supported), and you want to call one or the other based on certain conditions? This is how you could call Getaddress.io if Geoapify fails:
but I don't think that's what you're trying to do. |
Beta Was this translation helpful? Give feedback.
-
Hi Alex, I'm just leaving a note that someone else will be taking over trying to work on this called Lewys, sorry to be a pain |
Beta Was this translation helpful? Give feedback.
-
So, Geocoder does have a built-in caching feature that should eliminate duplicate calls to Geoapify. If that would solve the problem, see this section of the README: https://github.com/alexreisner/geocoder#caching |
Beta Was this translation helpful? Give feedback.
-
I'm trying to do my geocoding externally as the api I'm using isn't supported by the geocoder gem, however I want to access the near method to do the location comparison, I'm able to geocode but I believe I need to use geocoded_by to access it.
The api I'm using is called getAddress.io and I want to use that to geocode but use comparison to existing addresses that are already geocoded.
Apologies for any misunderstanding, I'm new to coding and trying my best :)
Beta Was this translation helpful? Give feedback.
All reactions