I am generating regions using Google Maps. I noticed that certain listings use the residential sub-division name from Google Maps rather than the city. For example, “Subdivision Estates” rather than “City”.
I also have a custom permalink structure that includes the city name, so this creates a couple of issues. First, the permalink is not consistent with the city name, and second, those listings will be missing from the region page for that city.
I tried to manually change the region term relationship in the wp_term_relationships table to use the term_taxonomy_id of the correct region, then flushed the permalinks…but that did not work.
Is there a way to change this relationship manually on the backend so I can fix the permalink and get the listing into the proper region page by city?
After creating more listings and realizing this is a huge issue with Google Maps using place names instead of the city, I decided to give Mapbox a try. I can confirm that Mapbox creates the cities properly and avoids using irrelevant place names with the public key.
Unfortunately, a secret key that uses the URL restriction does not load the map nor does it create the regions. This bug was confirmed here.
Is there still a plan to add two keys for Mapbox like Google Maps as mentioned in this post?
Unfortunately, there is no way to limit or cap the billing in Mapbox so there is no workaround to use the public key.
I kindly ask that the plan to add two keys for Mapbox be moved up on the priority list. There would be great value to having a functional Mapbox integration to create accurate regions, as well as provide a cheaper alternative to Google Maps.
When adding a listing, as I type or paste the physical address of a location in, Google Maps provides a match for the address and I select it.
The region is created automatically from this and it sometimes uses the proper city in the address and sometimes it uses a place name or something else that Google Maps references nearby.
Thank you for the detailed information, we will consider adding this feature in the next updates. If you need it urgently, please provide an example of the address when the place is in the region, and we will try to provide you with a temporary fix.