[Mapbender-users] SimpleSearch JSON Format

Chris Kay-Ayling CKay-Ayling at cornishmutual.co.uk
Mon Jul 8 04:59:17 PDT 2019


Hi Robert,

Thank you for your help and link but sadly neither work as intended.

Here is an example of the JSON that is being returned:

[{"type":"Feature","name":"Redruth, Cornwall, England, United Kingdom","properties":{"name":"Redruth, Cornwall, England, United Kingdom","extent":[-5.311015,50.166082,-5.145367,50.28176]},"geom":{"type":"Point","coordinates":[-5.224,50.233]}}]

The error which I am encountering is:

Empty feature or empty feature geometry
Array [ {...} ]
js:7456:21<http://cma-tst-geo99:8000/application/mapbender_user_db/assets/js>
TypeError: feature.geometry is undefined

Any insight on this?

Regards

Chris

From: Mapbender_users [mailto:mapbender_users-bounces at lists.osgeo.org] On Behalf Of Robert k
Sent: 08 July 2019 11:49
To: mapbender_users at lists.osgeo.org
Subject: Re: [Mapbender-users] SimpleSearch JSON Format


Hello Chris,



to implement and set up SimpleSearch, visit https://doc.mapbender.org/en/functions/search/simplesearch.html.



If you had to use a GeoJson in SimpleSearch, then you could look at this ticket:

https://github.com/mapbender/mapbender/issues/1189



Best regards

Robert
Am 08.07.19 um 10:02 schrieb Chris Kay-Ayling:
Hi

I'm looking to implement simple search however cannot find an example JSON response to format our data by.

Could someone please provide an example of how this JSON should be formatted.

Kind Regards

Chris

_______________________________________________

Mapbender_users mailing list

Mapbender_users at lists.osgeo.org<mailto:Mapbender_users at lists.osgeo.org>

https://lists.osgeo.org/mailman/listinfo/mapbender_users

Chris Kay-Ayling

System Developer

[Cornish Mutual logo]<http://www.cornishmutual.co.uk>

Our main source of business is referrals, and we really appreciate them, so please let your friends and business contacts know about us.

Cornish Mutual helps people and businesses in the South West with a range of insurance products including: Home, Farm, Renewable Energy, Let Property, Motor Trade, Special Events, Personal Accident, Motor and Agricultural Motor Fleet.

Please click here<https://www.cornishmutual.co.uk/privacy-policy> for Cornish Mutual's Privacy policy.

Tel: (+44) 01872 277151

www.cornishmutual.co.uk<http://www.cornishmutual.co.uk>

[cid:facebook_logo_18x18_d4a89b1e-7124-4ef9-a365-5991b4b42d97.jpg]<https://www.facebook.com/cornishmutual>  [cid:twitter_logo_18x18_a31cbaf7-4230-49d4-a794-525011a92003.jpg] <http://twitter.com/cornishmutual>   [cid:LinkedIn_Logo18x18_2a2500b8-74b3-4707-b7d4-14e268007efe.jpg] <http://www.linkedin.com/company/709934?trk=tyah>
        [cid:Chartered_Reduced_Corp_Insurers_DarkGrey-May2018v3_1edb1b7b-c34f-4062-b777-704ac53d43eb.jpg]       [CST Winner Logo]       [best Companies Logo]

________________________________

Agents, Legal Representatives and Insurers please notify your client(s) of the following:-

Cornish Mutual Assurance Company Ltd pass information to the Claims and Underwriting Exchange register and the Motor Insurance Anti-Fraud and Theft Register run by the Motor Insurers' Bureau (MIB). The aim is to help us to check information provided and to help prevent fraudulent claims. We will pass information relating to this incident to the appropriate registers. While dealing with your claim we may search the register(s).



This message and any attached files are confidential and are intended only for the named recipients. If you are not the intended recipient of this message or the person responsible for delivery to the intended recipient, please notify the sender immediately and delete this message from your system. The sender does not accept liability for any error or omissions in the content of this message or any attached files arising from e-mail transmission which cannot be guaranteed to be secure or error free.

The Cornish Mutual Assurance Co Ltd
Registered Office: CMA House, Newham Road, Newham, Truro TR1 2SU
Registered in England No. 78768

To help us improve our service, calls to our office may be recorded and monitored

Authorised by the Prudential Regulation Authority and regulated by the Financial Conduct Authority and the Prudential Regulation Authority.
________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapbender_users/attachments/20190708/8d54ad11/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 3140 bytes
Desc: image001.jpg
URL: <http://lists.osgeo.org/pipermail/mapbender_users/attachments/20190708/8d54ad11/attachment-0014.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 952 bytes
Desc: image002.jpg
URL: <http://lists.osgeo.org/pipermail/mapbender_users/attachments/20190708/8d54ad11/attachment-0015.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.jpg
Type: image/jpeg
Size: 1450 bytes
Desc: image003.jpg
URL: <http://lists.osgeo.org/pipermail/mapbender_users/attachments/20190708/8d54ad11/attachment-0016.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.jpg
Type: image/jpeg
Size: 885 bytes
Desc: image004.jpg
URL: <http://lists.osgeo.org/pipermail/mapbender_users/attachments/20190708/8d54ad11/attachment-0017.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image005.jpg
Type: image/jpeg
Size: 10954 bytes
Desc: image005.jpg
URL: <http://lists.osgeo.org/pipermail/mapbender_users/attachments/20190708/8d54ad11/attachment-0018.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image006.jpg
Type: image/jpeg
Size: 20603 bytes
Desc: image006.jpg
URL: <http://lists.osgeo.org/pipermail/mapbender_users/attachments/20190708/8d54ad11/attachment-0019.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image007.jpg
Type: image/jpeg
Size: 6174 bytes
Desc: image007.jpg
URL: <http://lists.osgeo.org/pipermail/mapbender_users/attachments/20190708/8d54ad11/attachment-0020.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Cornish_Mutual_RGB_email_84ad8647-c44a-416a-8b88-35a56fb46e6f.jpg
Type: image/jpeg
Size: 28499 bytes
Desc: Cornish_Mutual_RGB_email_84ad8647-c44a-416a-8b88-35a56fb46e6f.jpg
URL: <http://lists.osgeo.org/pipermail/mapbender_users/attachments/20190708/8d54ad11/attachment-0021.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: facebook_logo_18x18_d4a89b1e-7124-4ef9-a365-5991b4b42d97.jpg
Type: image/jpeg
Size: 952 bytes
Desc: facebook_logo_18x18_d4a89b1e-7124-4ef9-a365-5991b4b42d97.jpg
URL: <http://lists.osgeo.org/pipermail/mapbender_users/attachments/20190708/8d54ad11/attachment-0022.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: twitter_logo_18x18_a31cbaf7-4230-49d4-a794-525011a92003.jpg
Type: image/jpeg
Size: 1450 bytes
Desc: twitter_logo_18x18_a31cbaf7-4230-49d4-a794-525011a92003.jpg
URL: <http://lists.osgeo.org/pipermail/mapbender_users/attachments/20190708/8d54ad11/attachment-0023.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LinkedIn_Logo18x18_2a2500b8-74b3-4707-b7d4-14e268007efe.jpg
Type: image/jpeg
Size: 885 bytes
Desc: LinkedIn_Logo18x18_2a2500b8-74b3-4707-b7d4-14e268007efe.jpg
URL: <http://lists.osgeo.org/pipermail/mapbender_users/attachments/20190708/8d54ad11/attachment-0024.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Chartered_Reduced_Corp_Insurers_DarkGrey-May2018v3_1edb1b7b-c34f-4062-b777-704ac53d43eb.jpg
Type: image/jpeg
Size: 10954 bytes
Desc: Chartered_Reduced_Corp_Insurers_DarkGrey-May2018v3_1edb1b7b-c34f-4062-b777-704ac53d43eb.jpg
URL: <http://lists.osgeo.org/pipermail/mapbender_users/attachments/20190708/8d54ad11/attachment-0025.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CST-WinnersMultiyear-Email85_a9819f48-fada-4232-9736-455937b88f32.jpg
Type: image/jpeg
Size: 20603 bytes
Desc: CST-WinnersMultiyear-Email85_a9819f48-fada-4232-9736-455937b88f32.jpg
URL: <http://lists.osgeo.org/pipermail/mapbender_users/attachments/20190708/8d54ad11/attachment-0026.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BCA2016_company_2star-email-small85_7654b9be-778c-4d19-8acf-db162b99db5d.jpg
Type: image/jpeg
Size: 6174 bytes
Desc: BCA2016_company_2star-email-small85_7654b9be-778c-4d19-8acf-db162b99db5d.jpg
URL: <http://lists.osgeo.org/pipermail/mapbender_users/attachments/20190708/8d54ad11/attachment-0027.jpg>


More information about the Mapbender_users mailing list