I don’t know why you think storing data in database would be sloppy, that’s after all what they are for. There is nothing wrong with doing that.
Since the lat/long is unlikely to change unless there is a cataclysmic earth moving event, the data can be considered pretty static, you’re not going to re-query Google once you get the initial lat/long.
An alternative way is to store it in a .json file or better store it an array (json) and cache it (this is what I do), since your most likely using Javascript to read the values into a map, especially if your reading tons of values.
Related Posts:
- Fetch All Posts (Including Those Using a Custom Post Type) With WordPress API
- get post type plural
- REST API: How can I restrict a custom post type to only be accessible by authenticated users?
- How to create download links based on Custom Fields with Rewrite API
- Custom post metadata not appearing in public API
- Custom Post-to-Post with multiple parents?
- How do I get the intended post type of a revision post?
- Make parts of your wordpress website completely built with data from external APIs?
- Database to page routing API?
- Exclude objects from WordPress API based from ACF field using rest_prepare_{$post_type}
- Pros and cons of a custom page vs custom post type template file
- Creating tags via API
- CRUD operations in wordpress
- Api rest_route 404 while building filter for custom posts (filtered by multiple meta keys / custom fields)
- WordPress custom API endpoint – how to make the request more flexible
- Custom REST endpoint not working to retrieve single posts (“rest_no_route”)
- WordPress as a backend for external service? [closed]
- Custom permalink structure for remote content pages
- Use Gravity Forms and a Shopping Cart for output to Freshbooks for an Estimate [closed]
- Sync posts via JSON API
- Use a template for a specific url slug without creating a page
- How to Grab Anime info using Jikan API and fill the value in Metabox
- How to display “META” array in register_taxonomy
- Populating Custom Fields from live JSON
- WordPress API only returning HTML
- Insert custom post data in to MailChimp campaign email
- wp_insert_post not working for custom post type?
- Custom plugin contact form connecting to mailchimp API
- display posts, pages and custom post types from another wordpress site
- How to consume external API from WordPress post editor and display the response data in the custom field?
- Appointment booking system in WordPress
- Post current post type to my Ajax
- How to have permalink like domain.com/term/postname?
- List Posts By Custom Taxonomy
- Can variables be used to rewrite a Custom Post Type permalink? [duplicate]
- Creating two loops based on different logic
- How to Echo Metadata Value in Currency Format
- Issue on Working with Metabox – Checkbox to enable Sale Items
- Filter posts by tax (dropdown) and meta value
- How do I amend form data before it is saved for a custom post type
- Archive-posttype.php isn’t loaded
- List of all entries of custom-post-type: Add year-parameter?
- Wp Query with multiple custom tag(taxonomy) by get the terms
- Custom Posts values in custom post overview
- Should I use custom taxonomies or not?
- delete_post_meta() for whole CPT / multiple posts?
- List of child custom post types lists all custom post types
- get comments by current user inside page template
- Move Genesis Single Page/Single Post Title
- Get Specific Template Part if Custom Field is Some Value
- How can Custom Post Type and a page have the same slug?
- Custom filter for main search: how to exclude specific post_type from search results
- Page as Archive page
- Is This Code Efficient – Or is there a better way?
- get post types and plugin order
- Confused about Custom Post Types
- get parent content inside child posts
- Add an Outside Wrapper to my Header and Make it Full Width
- page template for custom post type
- 3 random images from custom post type, each in a div with a diffrent class
- Sortable column containing numeric values for Custom Post Type at WordPress Backend
- How to get specific post meta by title or id
- Listing all post from different custom post type for the logged in user
- Trouble with pagination
- get_category_link() for custom post type does not include custom slug rewrite?
- Page Template Dropdown For Custom Post Types
- Why are some of my custom posts not showing up on my page?
- How to list tags from custom post type attachments?
- How to add editable/dynamic values to dropdown of a Custom Post Type Meta Box
- How to concatenate two separate colums into one?
- make permalink go to a custom single.php file
- Custom Meta Box Causing Error: “Are you sure you want to do this? Please try again.”
- Why content coming from single?
- Two column layout with alphabetical ordering
- Make custom post meta sortable front end
- Delete a custom post function value
- Strip Characters From Tag Name
- custom post type archive page has 404 error even though has_archive is true
- $wpdb->get_col and ORDER BY?
- How to Display Posts From Category Within a Custom Taxonomy?
- Publish and save specific postmeta to a filtered post_type
- Make homepage the newest post of a custom post type
- how to associate several authors to a custom post type
- Pagination 404 on Index with custom query
- Add “Select All” to custom taxonomy
- post-per-page and offset not working
- Gravity forms multiple posts generated by one form [closed]
- Why are previous_post_link/next_post_link skipping some posts?
- Add tags to custom post type without menu link
- Display custom taxonomy on my custom post type
- List Categories (wp_terms) and count posts
- Post loop count is not in order
- Gravity forms how to display list of submitters on the post submitted page [closed]
- Add Previous/Next Buttons to CPT Single Pages Only
- Problem with $post_id object’s property
- get_post_types is not showing all registered posts
- How To Display A List Of CPT Posts In A Meta Box On Menus Page?
- Control content before and after custom post type loop
- Custom Post Types Archives and Single Pages not showing custom taxonomy data
- Custom post doesn’t show featured image