Migration from ZHgooglemap to ZHosm

  • lifeintravel
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
4 years 10 months ago #12392 by lifeintravel
Migration from ZHgooglemap to ZHosm was created by lifeintravel
Hi, i have ZHgooglemap installed and working with plugin and component, showing osm layer but google charge me a lot using their api. I would like to migrate to ZHosm. Is it possible to migrate all categories, maps, placemark without having to rebuild all the structure?
I have a lot of maps, placemarks and categories.

Also is it possible to show the maps in articles with the plugin without changing the code (zhgooglemaps to zhosmap)?

THanks a lot for your work.
Leo

Please Log in or Create an account to join the conversation.

More
4 years 10 months ago #12397 by Dima
Replied by Dima on topic Migration from ZHgooglemap to ZHosm
Hi.
You can import groups and placemarks from Google to OSM.
I can't import categories due to complicated process. You have to enter its structure manually.

In articles you have to change plugin call. If you have little knowlege in SQL you can create update statement to update zhgooglemaps to zhosmap in article content table

Don't forget support my developments: post review in JED , donate , help with translation ;)

Please Log in or Create an account to join the conversation.

  • lifeintravel
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
4 years 10 months ago #12401 by lifeintravel
Replied by lifeintravel on topic Migration from ZHgooglemap to ZHosm
Thanks Dima for your answer,
what about maps?
I have a lot of maps, one for every article. Is it possible to import them?

Please Log in or Create an account to join the conversation.

More
4 years 10 months ago #12410 by Dima
Replied by Dima on topic Migration from ZHgooglemap to ZHosm
Hi.
I have to think. Because today I just import placemarks, and check it existence by title, ie unique title in map. If exists - don't load.
But in this case all IDs it not the same.
In your case I have to load maps with the same IDs, and plaemarks too.
Only in this case you can easy update plugin to call and all will be the same.

I think I need to add different ways to import. Current exists (just load placemarks from map to map). And the second way like "Initial Load", which will load maps, placemarks, paths from extension to extension with the same IDs.

Don't forget support my developments: post review in JED , donate , help with translation ;)

Please Log in or Create an account to join the conversation.

More
4 years 9 months ago #12471 by jonrz
Replied by jonrz on topic Migration from ZHgooglemap to ZHosm
Hi Dima.

How about migrating everything via database?

If I install ZHOpenStreetMap along ZHGoogleMaps, and copy the contents of the following tables, preserving the IDs, will that work?
_maps
_markergroups
_markers
_paths

Thank you.

Please Log in or Create an account to join the conversation.

More
4 years 9 months ago #12473 by Dima
Replied by Dima on topic Migration from ZHgooglemap to ZHosm
Hi.
I produce Zh OSM from Zh Google, most of table columns is the same.
You can insert ... select into Zh OSM, but there is problem with categories (I think). It needed to analyse where it stores link to extension (one table of categories, but each extension has different categories.
I think you don't need insert categories for ZhOSM, but update exist categories to assign it.

As for "Also is it possible to show the maps in articles with the plugin without changing the code (zhgooglemaps to zhosmap)?"

Current state: can't. Each plugin parse its word

I can add into ZhOSM plugin prameter, and for example if you enable it - it can process "zhgooglemaps" too.

Don't forget support my developments: post review in JED , donate , help with translation ;)

Please Log in or Create an account to join the conversation.

Time to create page: 0.121 seconds

Donate


Go to top