On Fri, April 13, 2012 12:33, Frans Thamura wrote: > I just thinking > > > Create a web, fill there and save in poi of osm. > > > But, what happen if someone has put there. > > > Still dunno how to communcate if we have data also in my server that > 'must' > share poi
Well, it's a classic problem. If you have one database, then you are probably happy. But, if this database does not contain everything you want then you need to link to your own database somehow. Now you have two databases. Which one is correct? I think you have two options. Option 1: Add all data for all hotels into OSM. Now you have only one database. But the problem is that some data should probably not be entered into OSM. For example, number of rooms, or price of rooms. Option 2: Link OSM POIs to your own database. In OSM you can store name, address, phone number. In your own database, rating, price, reviews, etc. To link them together you need something unique in OSM. You can't use the node ID because it might change, or a node could be converted to an area. You could use the ref=* field, or webpage (this is probably unique for each hotel), or a combination of name+addr:housenumber. You could also introduce UUIDs, but the proposal for this never really got off the ground. Once you have a link you can write a program that extracts all hotel POIs in Indonesia from OSM and compares them to your own database. Your program should produce 3 lists: 1. Hotels in OSM that are also in your database 2. Hotels in OSM that are not in your database 3. Hotels in your list that are not in OSM List 1 is very boring. You don't need to do anything. Hotels in list 2 must be added to your database. Hotels in list 3 must be added to OSM. Or maybe they are already there, so you just need to make the link. This is a simplified view, but it's the basic technique you need. Best wishes, Andrew _______________________________________________ talk mailing list talk@openstreetmap.org http://lists.openstreetmap.org/listinfo/talk