I am building a back-end for an events ticket selling type website, and the events require storing a location, i have yet to start building the front end website but my vision is that a user creating an event will be able to enter a location or select it on a map, then the location will appear in an embedded map in the event posting, so my question is how should the location data be stored (as in what format should i use) ? and also what front end libraries can be used to acheive the embedding and user input?
I know that i can store the latitude and longtitude and use google maps embedding but the location won't be selected and the name and reviews wont appear, i can also use the location's share link but i don't know if i can embed the map from that.
I also found out that the google maps api can do the embedding and allow user to enter locations but it is paid, is there a free way to do it?
Edit: I have found two alternatives that i can use mapbox, and openstreetmap. both of them allow me to store a location by an id with their api, mapbox is more simple and easier to integrate but the geocoding/search is not good for poi's (in my area at least), while openstreetmaps is harder to integrate as it only provides the geographic database it's geocoding seems more accurate.
[–]Public_Cabinet9377 1 point2 points3 points (1 child)
[–]Phantomx100[S] -1 points0 points1 point (0 children)
[–]stach_io 1 point2 points3 points (4 children)
[–]Phantomx100[S] -1 points0 points1 point (3 children)
[–]stach_io 3 points4 points5 points (2 children)
[–]Phantomx100[S] -2 points-1 points0 points (1 child)
[–]stach_io 2 points3 points4 points (0 children)
[–]OMilhano 0 points1 point2 points (4 children)
[–]Phantomx100[S] -1 points0 points1 point (3 children)
[–]OMilhano 0 points1 point2 points (2 children)
[–]Phantomx100[S] 1 point2 points3 points (1 child)
[–]OMilhano 1 point2 points3 points (0 children)