Google Latlng Lookup
ExpressionEngine 2
Back to this add-on's main page
View Other Add-ons From No Two The Same
Setting multiple locations in one entree
Support Request
atelier
|
Posted: 28 April 2013 09:30 AM |
|
|
|
Hi
I must admit that I yet have to try your addon out ;-) but already now I have a question.
I am looking for a way to add multiple locations in one entry. My client wants to make connections between the points that we can show that as a route. It has to be one entry for other reasons.
I was thinking using Matrix, or another repeating fieldtype and populate each cell with one point. I could call the Matrix at the frontend to creata my route.
Has any of you done this before?
Thanks for tips!
|
|
|
Elliot Lewis
|
Posted: 29 April 2013 06:52 AM |
# 1
|
|
Developer
|
It’s simple to add multiple locations, just create multiple fields. You can then use the co-ordinates in your templates, or front-end JS. This is a simple fieldtype and works well if all you need is data to then put markers on a Map.
If you need more complicated features check out ‘Google Maps for ExpressionEngine’
http://devot-ee.com/add-ons/google-maps
|
|
|
atelier
|
Posted: 29 April 2013 07:05 AM |
# 2
|
|
|
Hi
Thanks. But that solution does not work for me, I am afraid.
I do not know how many more points I need.
I am working now on a solution with reverse related entrees, creating a list in a Template.
(Thanks for the tip about Google Maps for EE)
Thanks for making your work avayable! Awesome.
|
|
|
Elliot Lewis
|
Posted: 29 April 2013 07:24 AM |
# 3
|
|
Developer
|
It entirely depends on what you’re trying to achieve. The fieldtype provides a UI for non-technical people to locate somewhere. As developers we need the lat/lng to do something with a location!
If you wanted to draw straight lines between points to create a route, then you could use lots of lat/lng points. If you need to do that then Google Maps for ExpressionEngine will save you a lot of time.
Alternatively if you want a route between 2 points Google has a webservice for this with their Directions API:
https://developers.google.com/maps/documentation/webservices/
You could have 2 fields types in EEs CP and your client select a start and end point then you use the Directions API to plot a route on the front-end.
|
|
|
atelier
|
Posted: 29 April 2013 07:53 AM |
# 4
|
|
|
For this new feature on this site I need to create custom routes with multiple points. In areas that have no roads (straight through wood and farmland) I use Gmaps http://devot-ee.com/add-ons/gmaps for my Templates, and MX Google Maps http://devot-ee.com/add-ons/mx-google-maps for adding points.
I was looking for other solutions and found your addon. I tested it now, it does exactly what it has to do. I have a use for it on another site, so thank you!
But indeed, ‘Google Maps for ExpressionEngine’ looks promising being all in one.
|
|
|