I’m trying to import my states counties and cities. I don’t have the lat and long for the locations, I only have the city, county and zip.
I have wpai (pro) and thought I could use this to import but don’t see the option. When I look at the GeoDirectory import I don’t see a way to map anything and my file was rejected.
Referencing this post:
https://wpgeodirectory.com/support/topic/location-manager-import-locations/page/2/#post-419656
There is a code someone created to get this data on import although I don’t know how to use it with the GD importer.
<?php
/**
* Plugin Name: Test Widget Plugin
* Plugin URI: https://test.com
* Description: Adds an example widget that displays the site title and tagline in a widget area.
* Version: 1.0
* Author: test
* Author URI: https://www.test.com
*/
class jpen_Example_Widget extends WP_Widget {
// Set up the widget name and description.
public function __construct() {
$widget_options = array( 'classname' => 'example_widget', 'description' => 'This is an Example Widget' );
parent::__construct( 'example_widget', 'Example Widget', $widget_options );
}
// Create the widget output.
public function widget( $args, $instance ) {
$title = apply_filters( 'widget_title', $instance[ 'title' ] );
$blog_title = get_bloginfo( 'name' );
$tagline = get_bloginfo( 'description' );
I also found this site… https://www.geocod.io but it didn’t work. I’ve got a ticket in with them.
Any ideas on how to get the lat and long for state>region>cities/zip codes?