public-roadmap icon indicating copy to clipboard operation
public-roadmap copied to clipboard

Google Local API - Top local results use gps_coordinates from ad results

Open wofguy opened this issue 2 years ago • 1 comments

I found that the gps_coordinates of the first two local results used the coordinates of the ad results instead.

In the example, the 1st ad and the 1st local result used 29.696683999999998, -95.41171299999999, but the first local result should be 29.61836610, -95.21765280

image

Playground Link

Google Results

wofguy avatar Nov 27 '23 23:11 wofguy

Looks like when we have ads, we are using ads' coordinates in local results because we are selecting the coords element using index, so selecting first item for local result is giving us first ad.

Ovi avatar Aug 06 '24 18:08 Ovi