# Backend endpoint with Google API geocode URL?

**URL:** <https://forum.bubble.io/t/backend-endpoint-with-google-api-geocode-url/233631>\
**Category:** APIs\
**Created:** [November 22, 2022, 11:10am UTC](https://forum.bubble.io/t/backend-endpoint-with-google-api-geocode-url/233631 "2022-11-22T11:10:49Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![ts11](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/ts11/32/55260_2.png) [@ts11](https://forum.bubble.io/u/ts11)\
**Post date:** [March 20, 2023, 11:55pm UTC](https://forum.bubble.io/t/backend-endpoint-with-google-api-geocode-url/233631/5 "2023-03-20T23:55:09Z")

</div>

Thank you for hopping in here, @keith. In this case, I don’t have any restrictions set on the geocoding API key, and I’m only encountering an issue when I try to sort by distance within an API workflow. Client-side, it seems to be working fine. I posted a more complete explanation of the issue at the post below. It’s got me puzzled.

> [@Issue with sorting by geo distance in API workflow](http://forum.bubble.io/t/issue-with-sorting-by-geo-distance-in-api-workflow/252629):
>
> Hi folks wave I’m encountering a weird issue and could use a fresh set of eyes. Short version: I am trying to reference the nearest distance from a given address to a polyline in an API workflow. It should be pretty straightforward. I have the list of geographic addresses comprising the polyline and the reference address in my database. To get the desired value, I should be able to simply sort the polyline coordinates by their distance from the selected address, sort them by ascending value an…

---

_[View the full topic](https://forum.bubble.io/t/backend-endpoint-with-google-api-geocode-url/233631)._
