- This topic has 2 replies, 2 voices, and was last updated 2 weeks, 2 days ago by .
-
Topic
-
I installed Meta Box and Geolocation and can’t extract the address parts I need. I’m confused with the documentation in the metabox (fields) and the other plugin Geolocation because the information’s are different. And I can’t find a working example 🙁
- Why do I need the api key in the map? Your documentation in Geolocation is telling me to add it above the fields with “geo” => array(“api_key” => “…”) and so on, but then the map is crashing.
- If I’m typing an adress in the adress field, the map loads the pin. But how can I extract the street, zip, sity an so on in the other fields?
My Config:
$meta_boxes[] = array( "id" => "prefix_entry", "title" => esc_html__("my entry", "my_module"), "post_types" => array("my_entry"), "context" => "normal", "priority" => "high", "api_key" => "...-pAfUh8L_UpPGfA...", // API Key tested -> working fine "fields" => array( array( "id" => "prefix_address", "name" => esc_html__("Address", "my_module"), "type" => "text", ), array( "id" => "prefix_city", "name" => esc_html__("City", "my_module"), "type" => "text", "binding" => "locality", "address_field" => "prefix_address", ), array( "id" => "prefix_street", "name" => esc_html__("Street", "my_module"), "type" => "text", "binding" => "street_address", "address_field" => "prefix_address", ), array( "id" => "prefix_map", "name" => esc_html__("Location", "my_module")), "type" => "map", "address_field" => "prefix_address", "api_key" => "...pAfUh8L_UpPGfA...", ), ), );
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.