Thanks for that bit of code. Yes, it would be a bit tricky to do a query on the lat/long in that field. It sure would be nice if I could get this code into a custom field for my post type.
Actually, I can see the relationships in the database in wp_mappress posts that connects the posts (via postid) and the maps (mapid to the wp_mappress_maps table). And it looks like I may be able to get the lat/long from the wp_mappress_maps table….